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:
Egor Zhdan
2020-12-23 18:48:21 +03:00
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) }