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

Exclude $ classes from being run by Unit.

Fixes https://github.com/cbeust/kobalt/issues/251.
This commit is contained in:
Cedric Beust 2016-07-13 02:45:08 -08:00
parent 3ac313b7bf
commit fdd18a3573

View file

@ -34,9 +34,9 @@ abstract class GenericTestRunner: ITestRunnerContributor {
} }
val testClasses = IFileSpec.GlobSpec(toClassPaths(testConfig.testIncludes)) val testClasses = IFileSpec.GlobSpec(toClassPaths(testConfig.testIncludes))
.toFiles(project.directory, path, testConfig.testExcludes.map { .toFiles(project.directory, path, testConfig.testExcludes.map { Glob(it) })
Glob(it) .filter { ! it.path.contains('$') }
}).map { .map {
File(KFiles.joinDir(project.directory, testClassDir, it.path)) File(KFiles.joinDir(project.directory, testClassDir, it.path))
} }
val result = testClasses.map { val result = testClasses.map {