log execution data
This commit is contained in:
parent
71d8ded857
commit
f552fe656f
|
@ -1,7 +1,7 @@
|
||||||
apply(plugin = "jacoco")
|
apply(plugin = "jacoco")
|
||||||
|
|
||||||
project.afterEvaluate {
|
project.afterEvaluate {
|
||||||
val variants = listOf("debug", "fullDebug")
|
val variants = listOf("fullDebug")
|
||||||
|
|
||||||
tasks.register<JacocoReport>(name = "jacocoAllDebugReport") {
|
tasks.register<JacocoReport>(name = "jacocoAllDebugReport") {
|
||||||
|
|
||||||
|
@ -72,8 +72,10 @@ project.afterEvaluate {
|
||||||
subprojects.forEach { proj ->
|
subprojects.forEach { proj ->
|
||||||
variants.forEach { variant ->
|
variants.forEach { variant ->
|
||||||
val path = "${proj.buildDir}/outputs/unit_test_code_coverage/${variant}UnitTest/test${variant.replaceFirstChar(Char::titlecase)}UnitTest.exec"
|
val path = "${proj.buildDir}/outputs/unit_test_code_coverage/${variant}UnitTest/test${variant.replaceFirstChar(Char::titlecase)}UnitTest.exec"
|
||||||
// printf("Collecting execution data from: %s\n", path)
|
if ((File(path)).exists()) {
|
||||||
if ((File(path)).exists()) it.add(path)
|
it.add(path)
|
||||||
|
println("Collecting execution data from: $path")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue