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

Rename test includes.

This commit is contained in:
Cedric Beust 2016-07-18 02:16:37 -08:00
parent ce3daac4f4
commit ad7fe6c48f
2 changed files with 2 additions and 3 deletions

View file

@ -19,14 +19,14 @@ class TestConfig(val project: Project, val isDefault : Boolean = false) {
jvmArgs.addAll(arg) jvmArgs.addAll(arg)
} }
fun includes(vararg arg: String) { fun include(vararg arg: String) {
testIncludes.apply { testIncludes.apply {
clear() clear()
addAll(arg) addAll(arg)
} }
} }
fun excludes(vararg arg: String) { fun exclude(vararg arg: String) {
testExcludes.apply { testExcludes.apply {
clear() clear()
addAll(arg) addAll(arg)

View file

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