@@ -253,6 +253,9 @@ trait ParallelTesting extends RunnerOrchestration { self =>
253
253
/** A set of the different failures */
254
254
def failureReasons : Set [Failure ] = _failures
255
255
256
+ /** Number of failed tests */
257
+ def failureCount : Int = _failures.size
258
+
256
259
protected def logBuildInstructions (reporter : TestReporter , testSource : TestSource , err : Int , war : Int ) = {
257
260
val errorMsg = testSource.buildInstructions(reporter.errorCount, reporter.warningCount)
258
261
addFailureInstruction(errorMsg)
@@ -295,7 +298,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
295
298
" [" + (" =" * (math.max(progress - 1 , 0 ))) +
296
299
(if (progress > 0 ) " >" else " " ) +
297
300
(" " * (39 - progress)) +
298
- s " ] completed ( $tCompiled/ $sourceCount, $errorCount failed, ${timestamp}s) \r "
301
+ s " ] completed ( $tCompiled/ $sourceCount, $failureCount failed, ${timestamp}s) \r "
299
302
)
300
303
301
304
Thread .sleep(100 )
@@ -305,7 +308,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
305
308
val timestamp = (System .currentTimeMillis - start) / 1000
306
309
// println, otherwise no newline and cursor at start of line
307
310
realStdout.println(
308
- s " [=======================================] completed ( $sourceCount/ $sourceCount, $errorCount failed, ${timestamp}s) "
311
+ s " [=======================================] completed ( $sourceCount/ $sourceCount, $failureCount failed, ${timestamp}s) "
309
312
)
310
313
}
311
314
0 commit comments