Skip to content

Commit

Permalink
add JaCoCo for test coverage analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinaZoldnere committed Dec 16, 2024
1 parent cd1cd28 commit 8240a6f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions insurance-calculator-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'maven-publish'
id 'com.palantir.docker' version '0.36.0'
id 'checkstyle'
id 'jacoco'
}

checkstyle {
Expand Down Expand Up @@ -122,3 +123,15 @@ docker {
tasks.named('dockerPrepare').configure {
dependsOn bootJar // Explicit dependency on bootJar
}

jacoco {
toolVersion = "0.8.12"
}

jacocoTestReport {
dependsOn test
reports {
xml.required.set(true)
html.required.set(true)
}
}

0 comments on commit 8240a6f

Please sign in to comment.