Skip to content

Commit

Permalink
more jacoco improvements :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Manrique committed Nov 5, 2024
1 parent 81552e0 commit 1c96acf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ project.afterEvaluate {
description = "Generates a combined test report for all modules"
group = "verification"

destinationDirectory = file("$buildDir/reports/tests/aggregate")

subprojects.each { subproject ->
subproject.tasks.withType(Test).forEach { testTask ->
reportOn(testTask.binaryResultsDirectory)
def testTask = subproject.tasks.named("testDebugUnitTest").get()
if (testTask) {
dependsOn(testTask)
testResults.from(testTask.binaryResultsDirectory)
}
}

destinationDirectory = file("$buildDir/reports/tests/aggregate")
}

tasks.register("jacocoCoverageVerification", JacocoCoverageVerification) {
Expand All @@ -54,7 +56,7 @@ project.afterEvaluate {
group = "Reporting"
description = "Generate JaCoCo coverage report for the debug build."

dependsOn unitTests
dependsOn tasks.named("unitTests").get()

finalizedBy(tasks.named("jacocoCoverageVerification").get())

Expand Down

0 comments on commit 1c96acf

Please sign in to comment.