Mini testrunner: show "green" if there's at least one pass and rest is pass or skip jv stx-8.0.0
authorJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 14 Jun 2018 22:19:39 +0100
branchjv
changeset 18227 d25a407ba86d
parent 18226 346376844040
child 18256 b66dd6d77a59
Mini testrunner: show "green" if there's at least one pass and rest is pass or skip This is more meaningfull result then showing "gray" if there's at least one skip.
Tools__TestRunnerMini.st
--- a/Tools__TestRunnerMini.st	Mon Jun 11 10:22:17 2018 +0100
+++ b/Tools__TestRunnerMini.st	Thu Jun 14 22:19:39 2018 +0100
@@ -1234,20 +1234,20 @@
         result notNil ifTrue:[
             self hasErrors ifTrue:[^AbstractTestRunner errorColor].
             self hasFailures ifTrue:[^AbstractTestRunner failedColor].
-            self hasSkipped ifTrue:[^AbstractTestRunner notRunColor]. 
             self hasPassed ifTrue:[
                 numTests := suite tests size.
-                numRun := result passedCount + result failureCount + result errorCount.
+                numRun := result passedCount + result skippedCount.
                 numRun = numTests ifTrue:[
                     ^AbstractTestRunner passedColor 
                 ]
             ].
+            self hasSkipped ifTrue:[^AbstractTestRunner notRunColor]. 
         ]
     ].
     ^ AbstractTestRunner notRunColor
 
     "Created: / 15-03-2010 / 15:24:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 23-09-2014 / 10:04:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 14-06-2018 / 22:15:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 info