From 25df7bed387315a7b4ae470268f9fbb85ee54309 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 21 Mar 2017 16:55:59 -0700 Subject: [PATCH] Logs. --- .../src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt | 2 ++ .../src/main/kotlin/com/beust/kobalt/internal/TestNgRunner.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt index a4796e83..866eb8d4 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt @@ -98,6 +98,8 @@ abstract class GenericTestRunner: ITestRunnerContributor { configName: String) : Boolean { var result = false + context.logger.log(project.name, 1, "Running default TestNG runner") + val testConfig = project.testConfigs.firstOrNull { it.name == configName } if (testConfig != null) { diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/TestNgRunner.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/TestNgRunner.kt index 19612c1c..e8ea2291 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/TestNgRunner.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/TestNgRunner.kt @@ -64,6 +64,8 @@ class TestNgRunner : GenericTestRunner() { override fun runTests(project: Project, context: KobaltContext, classpath: List, configName: String): Boolean { + context.logger.log(project.name, 1, "Running enhanced TestNG runner") + val testngDependency = (project.testDependencies.filter { it.id.contains("testng") } .firstOrNull() as AetherDependency).version val testngDependencyVersion = Versions.toLongVersion(testngDependency)