From 24174b40f10e1f2166b84d38b58c3a706d3f188d Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 14 Jan 2017 08:46:26 -0800 Subject: [PATCH] Add support for KotlinTest. --- .../com/beust/kobalt/internal/KotlinTestRunner.kt | 10 ++++++++++ src/main/resources/META-INF/kobalt-core-plugin.xml | 1 + 2 files changed, 11 insertions(+) create mode 100644 modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/KotlinTestRunner.kt diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/KotlinTestRunner.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/KotlinTestRunner.kt new file mode 100644 index 00000000..8be492d1 --- /dev/null +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/KotlinTestRunner.kt @@ -0,0 +1,10 @@ +package com.beust.kobalt.internal + +/** + * KotlinTestRunner triggers if it finds a dependency on io.kotlintest but other than that, it just + * uses the regular JUnitRunner. + */ +class KotlinTestRunner : JUnitRunner() { + override val dependencyName = "io.kotlintest" +} + diff --git a/src/main/resources/META-INF/kobalt-core-plugin.xml b/src/main/resources/META-INF/kobalt-core-plugin.xml index 706ec10b..63b5df77 100644 --- a/src/main/resources/META-INF/kobalt-core-plugin.xml +++ b/src/main/resources/META-INF/kobalt-core-plugin.xml @@ -22,6 +22,7 @@ com.beust.kobalt.internal.JUnitRunner com.beust.kobalt.internal.TestNgRunner com.beust.kobalt.internal.SpekRunner + com.beust.kobalt.internal.KotlinTestRunner com.beust.kobalt.app.KobaltPluginTemplate