log execution data

This commit is contained in:
Milos Kozak 2023-10-16 15:49:43 +02:00
parent 71d8ded857
commit f552fe656f

View file

@ -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")
}
} }
} }
} }