diff --git a/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt b/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt index 8a5a8616..f6b44b14 100644 --- a/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt +++ b/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt @@ -12,6 +12,10 @@ import com.beust.kobalt.misc.log import java.io.File import java.net.URLClassLoader +/** + * Base class for testing frameworks that are invoked from a main class with arguments. Test runners can + * subclass this class and override mainClass and args. + */ abstract class GenericTestRunner : ITestRunnerContributor { abstract val mainClass: String abstract fun args(project: Project, classpath: List) : List diff --git a/src/main/kotlin/com/beust/kobalt/internal/SpekRunner.kt b/src/main/kotlin/com/beust/kobalt/internal/SpekRunner.kt index 923938f2..b3feaf69 100644 --- a/src/main/kotlin/com/beust/kobalt/internal/SpekRunner.kt +++ b/src/main/kotlin/com/beust/kobalt/internal/SpekRunner.kt @@ -1,5 +1,9 @@ package com.beust.kobalt.internal +/** + * SpekRunner triggers if it finds a dependency on org.jetbrains.spek but other than that, it just + * uses the regular JUnitRunner. + */ public class SpekRunner() : JUnitRunner() { override val dependencyName = "org.jetbrains.spek" }