Skip to content

Commit

Permalink
Require JaCoCo to output reports as XML
Browse files Browse the repository at this point in the history
  • Loading branch information
Thijsiez committed Nov 5, 2023
1 parent 6e7d351 commit c28f8ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ configure(subprojects) {
testImplementation("io.mockk:mockk:$mockkVersion")
}

tasks.jacocoTestReport {
reports {
xml.required = true
}
}
tasks.test {
useJUnitPlatform()
finalizedBy(tasks.jacocoTestReport)
Expand All @@ -63,6 +68,10 @@ configure(subprojects) {
tasks.testCodeCoverageReport {
dependsOn(project(":library").tasks.jacocoTestReport)
dependsOn(project(":examples").tasks.jacocoTestReport)

reports {
xml.required = true
}
}
tasks.test {
finalizedBy(tasks.testCodeCoverageReport)
Expand Down

0 comments on commit c28f8ce

Please sign in to comment.