Fix reporting of filtered out test suites
This fixes the `--ktest_no_excluded_test_suites` command line option behavior to match its description in the help page.
This commit is contained in:
committed by
Vasily Levchenko
parent
76cac9fba0
commit
c866dc7303
@@ -257,10 +257,11 @@ internal class TestRunner(val suites: List<TestSuite>, args: Array<String>) {
|
||||
val iterationTime = measureTimeMillis {
|
||||
suitesFiltered.forEach {
|
||||
if (it.ignored) {
|
||||
if (reportExcludedTestSuites) {
|
||||
sendToListeners { ignoreSuite(it) }
|
||||
}
|
||||
sendToListeners { ignoreSuite(it) }
|
||||
} else {
|
||||
if (!reportExcludedTestSuites && it.size == 0) {
|
||||
return@forEach
|
||||
}
|
||||
sendToListeners { startSuite(it) }
|
||||
val time = measureTimeMillis { it.run() }
|
||||
sendToListeners { finishSuite(it, time) }
|
||||
|
||||
Reference in New Issue
Block a user