1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Make test-classes.

This commit is contained in:
Cedric Beust 2016-02-18 02:24:58 +04:00
parent 61388c2389
commit e015253f2d

View file

@ -24,7 +24,9 @@ abstract class GenericTestRunner : ITestRunnerContributor {
else 0
protected fun findTestClasses(project: Project, testConfig: TestConfig): List<String> {
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 {