From e015253f2de687d7d9848bbc276511e077e33de0 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 18 Feb 2016 02:24:58 +0400 Subject: [PATCH] Make test-classes. --- .../main/kotlin/com/beust/kobalt/internal/GenericRunner.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 51f45cbf..99acd12e 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 @@ -24,7 +24,9 @@ abstract class GenericTestRunner : ITestRunnerContributor { else 0 protected fun findTestClasses(project: Project, testConfig: TestConfig): List { - val path = KFiles.joinDir(project.buildDirectory, KFiles.TEST_CLASSES_DIR) + val path = KFiles.joinDir(project.buildDirectory, KFiles.TEST_CLASSES_DIR).apply { + File(this).mkdirs() + } val result = IFileSpec.GlobSpec(toClassPaths(testConfig.testIncludes)) .toFiles(project.directory, path, testConfig.testExcludes.map {