Mini / Embedded test runner: remove (hide) "Coverage" and "Run all" buttons from embedded / mini test runner jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 17 Nov 2017 11:54:38 -0300
branchjv
changeset 17764 7ecdf78ebe2d
parent 17763 bb91bbb34e25
child 17765 04ed2fe82f1a
Mini / Embedded test runner: remove (hide) "Coverage" and "Run all" buttons from embedded / mini test runner They're rarely used and only takes precious space.
Tools__TestRunnerEmbedded.st
Tools__TestRunnerMini.st
--- a/Tools__TestRunnerEmbedded.st	Mon Nov 13 22:40:43 2017 -0300
+++ b/Tools__TestRunnerEmbedded.st	Fri Nov 17 11:54:38 2017 -0300
@@ -1,6 +1,7 @@
 "
  COPYRIGHT (c) 2006 by eXept Software AG
               All Rights Reserved
+
  This software is furnished under a license and may be used
  only in accordance with the terms of that license and with the
  inclusion of the above copyright notice.   This software may not
@@ -187,12 +188,14 @@
     ^ true
 
     "Created: / 23-09-2014 / 10:12:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 17-11-2017 / 11:44:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 runFailedButtonVisibleHolder
-    ^ true
+    ^ false "/true
 
     "Created: / 23-09-2014 / 10:12:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 17-11-2017 / 11:43:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !TestRunnerEmbedded methodsFor:'change & update'!
@@ -373,5 +376,10 @@
 
 version_CVS
     ^ '$Header$'
+!
+
+version_HG
+
+    ^ '$Changeset: <not expanded> $'
 ! !
 
--- a/Tools__TestRunnerMini.st	Mon Nov 13 22:40:43 2017 -0300
+++ b/Tools__TestRunnerMini.st	Fri Nov 17 11:54:38 2017 -0300
@@ -196,10 +196,12 @@
     ^ 
     #(FullSpec
        name: windowSpec
+       uuid: '19654d83-a88a-4ba5-a03b-0550ba80c0db'
        window: 
       (WindowSpec
          label: 'Mini Test Runner'
          name: 'Mini Test Runner'
+         uuid: '4bd5c159-6c40-4503-aaf5-fe44c935bfb2'
          min: (Point 10 10)
          bounds: (Rectangle 0 0 600 50)
        )
@@ -209,6 +211,7 @@
           (ViewSpec
              name: 'Box1'
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
+             uuid: '66940902-27aa-44b9-9781-ca7fecce683d'
              backgroundChannel: resultBackgroundColorAspect
              component: 
             (SpecCollection
@@ -216,6 +219,7 @@
                 (HorizontalPanelViewSpec
                    name: 'RunnerInnerBox'
                    layout: (LayoutFrame 0 0 0 0 -2 1 0 1)
+                   uuid: '5270ed4f-9fb1-4ee4-a6d7-29a0cf210484'
                    backgroundChannel: resultBackgroundColorAspect
                    horizontalLayout: rightSpaceFit
                    verticalLayout: topSpace
@@ -226,6 +230,7 @@
                      collection: (
                       (ViewSpec
                          name: 'RunnerInfoBox'
+                         uuid: '28697b42-41ed-4d3e-af60-105a19b47367'
                          backgroundChannel: resultBackgroundColorAspect
                          component: 
                         (SpecCollection
@@ -234,6 +239,7 @@
                                label: 'Run tests first!!'
                                name: 'ResultName'
                                layout: (LayoutFrame 22 0 0 0 0 1 -10 1)
+                               uuid: '96629bc4-d4d3-4809-bf4c-ac182ea08683'
                                backgroundChannel: resultBackgroundColorAspect
                                foregroundChannel: resultTextForegroundColorAspect
                                foregroundColor: (Color 100.0 100.0 100.0)
@@ -245,6 +251,7 @@
                                name: 'Button3'
                                layout: (LayoutFrame 5 0 3 0 21 0 17 0)
                                activeHelpKey: pin
+                               uuid: '1d2689a8-76d6-423d-b4a7-f5f5c5adbd1a'
                                level: 0
                                visibilityChannel: pinButtonVisibleHolder
                                backgroundChannel: resultBackgroundColorAspect
@@ -256,12 +263,13 @@
                             )
                           
                          )
-                         extent: (Point 206 31)
+                         extent: (Point 219 31)
                        )
                       (ActionButtonSpec
                          label: 'Debug'
                          name: 'DebugButton'
                          activeHelpKey: debugSelected
+                         uuid: '61c9ca6b-6f31-42bc-818b-5b2e562fd6f2'
                          translateLabel: true
                          model: debug
                          enableChannel: runEnabledHolder
@@ -271,6 +279,7 @@
                          label: 'Stop'
                          name: 'Button2'
                          activeHelpKey: stopRun
+                         uuid: '1ae27061-7e2c-4769-83fd-1e461371fe86'
                          visibilityChannel: runningHolder
                          translateLabel: true
                          model: stop
@@ -280,6 +289,7 @@
                          label: 'Run'
                          name: 'Run'
                          activeHelpKey: runSelected
+                         uuid: '79afa5fe-a549-4419-b035-21af25ac5ec3'
                          visibilityChannel: notRunningHolder
                          translateLabel: true
                          model: run
@@ -290,6 +300,7 @@
                          label: 'Failed'
                          name: 'Button1'
                          activeHelpKey: runFailed
+                         uuid: '0cc5d9bb-8cab-44d4-aba2-62578ac4ebf8'
                          visibilityChannel: runFailedButtonVisibleHolder
                          translateLabel: true
                          model: runFailed
@@ -300,6 +311,7 @@
                          label: 'Run All'
                          name: 'RunAll'
                          activeHelpKey: runAll
+                         uuid: 'fc3f6081-35f8-43b6-a826-a4e902a11224'
                          visibilityChannel: runAllButtonVisibleHolder
                          translateLabel: true
                          model: runAll
@@ -310,10 +322,10 @@
                          label: 'Coverage'
                          name: 'Button4'
                          activeHelpKey: runAllWithCoverage
-                         visibilityChannel: runAllButtonVisibleHolder
+                         uuid: '4a032381-faf2-45f1-9860-71a32621b927'
+                         visibilityChannel: runCoverageEnabledHolder
                          translateLabel: true
                          model: runAllWithCoverage
-                         enableChannel: runAllEnabledHolder
                          extent: (Point 80 25)
                        )
                       )
@@ -325,6 +337,7 @@
                    name: 'ResultInfo'
                    layout: (LayoutFrame 0 0 -20 1 0 1 0 1)
                    style: (FontDescription helvetica medium roman 10 #'iso10646-1' nil nil)
+                   uuid: 'f1b6a42b-e53e-4ace-ab09-040c0d2a0f39'
                    backgroundChannel: resultBackgroundColorAspect
                    foregroundChannel: resultTextForegroundColorAspect
                    translateLabel: true
@@ -334,6 +347,7 @@
                 (ViewSpec
                    name: 'ProgressPanel'
                    layout: (LayoutFrame -32 0.5 -17 1 -3 1.0 -5 1)
+                   uuid: 'e955621c-7cc4-4a8a-9d41-22e68fbe024d'
                    initiallyInvisible: true
                    visibilityChannel: progressIndicatorShownHolder
                    backgroundChannel: resultBackgroundColorAspect
@@ -343,6 +357,7 @@
                       (ProgressIndicatorSpec
                          name: 'RunningProgress'
                          layout: (LayoutFrame 5 0 0 0 -5 1 0 1)
+                         uuid: '2be63ed2-a5ba-449a-91bb-5cdb196105b6'
                          model: progressHolder
                          postBuildCallback: postBuildProgressIndicator:
                        )
@@ -974,6 +989,12 @@
     "Created: / 23-09-2014 / 10:12:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+runCoverageEnabledHolder
+    ^ false
+
+    "Created: / 17-11-2017 / 11:47:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 runFailedButtonVisibleHolder
     ^ false