1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -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 testClasspath = dependencyManager.transitiveClosure(allDeps)
val result = IFileSpec.GlobSpec(toClassPaths(testConfig.testIncludes)) val result = IFileSpec.GlobSpec(toClassPaths(testConfig.testIncludes))
.toFiles(project.directory, path, testConfig.testExcludes.map { .toFiles(project.directory, path, testConfig.testExcludes.map {
Glob(it) Glob(it)
}) }).map {
.map { Pair(it, it.toString().replace("/", ".").replace("\\", ".").replace(".class", ""))
Pair(it, it.toString().replace("/", ".").replace("\\", ".").replace(".class", "")) }.filter {
}.filter { acceptClass(it.first, it.second, testClasspath, File(testClassDir))
acceptClass(it.first, it.second, testClasspath, File(testClassDir)) }
}
log(2, "Found ${result.size} test classes") log(2, "Found ${result.size} test classes")
return result.map { it.second } return result.map { it.second }