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

Formatting.

This commit is contained in:
Cedric Beust 2016-06-30 21:46:41 -08:00
parent d9ea1dae02
commit 9271aaf398

View file

@ -43,14 +43,13 @@ abstract class GenericTestRunner: ITestRunnerContributor {
}
val testClasspath = dependencyManager.transitiveClosure(allDeps)
val result = IFileSpec.GlobSpec(toClassPaths(testConfig.testIncludes))
.toFiles(project.directory, path, testConfig.testExcludes.map {
Glob(it)
})
.map {
Pair(it, it.toString().replace("/", ".").replace("\\", ".").replace(".class", ""))
}.filter {
acceptClass(it.first, it.second, testClasspath, File(testClassDir))
}
.toFiles(project.directory, path, testConfig.testExcludes.map {
Glob(it)
}).map {
Pair(it, it.toString().replace("/", ".").replace("\\", ".").replace(".class", ""))
}.filter {
acceptClass(it.first, it.second, testClasspath, File(testClassDir))
}
log(2, "Found ${result.size} test classes")
return result.map { it.second }