diff --git a/core/src/main/kotlin/com/malinskiy/marathon/Marathon.kt b/core/src/main/kotlin/com/malinskiy/marathon/Marathon.kt index 12466e31c..77bce5c99 100644 --- a/core/src/main/kotlin/com/malinskiy/marathon/Marathon.kt +++ b/core/src/main/kotlin/com/malinskiy/marathon/Marathon.kt @@ -84,9 +84,11 @@ class Marathon( override suspend fun scheduleTests(componentInfo: ComponentInfo) { val parsedTests = testParser.extract(componentInfo) - val tests = applyTestFilters(parsedTests) + if (parsedTests.isEmpty()) return - logger.info("Scheduling {} tests for {} component: {}", tests.size, componentInfo.name, tests.joinToString(", ") { it.toTestName() }) + val tests = applyTestFilters(parsedTests) + logger.info("Scheduling {} tests for {} component", tests.size, componentInfo.name) + logger.info(tests.joinToString(", ") { it.toTestName() }) val shard = prepareTestShard(tests, analytics) scheduler.addTests(shard)