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.
--- 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