Skip to content

Commit

Permalink
Enable code coverage reports
Browse files Browse the repository at this point in the history
Signed-off-by: Saeed Rezaee <saeed.rezaee@kynetics.it>
  • Loading branch information
SaeedRe committed Feb 15, 2024
1 parent 9d601af commit b9cac17
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -163,25 +163,18 @@ detekt {

test {
useTestNG()
finalizedBy jacocoTestReport
}

task codeCoverage(type: JacocoReport, group: 'verification') {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")

jacocoTestReport {
subprojects.each {
sourceSets it.sourceSets.main
}

reports {
xml.required.set(true)
xml.destination new File("${buildDir}/reports/jacoco/report.xml")
html.required.set(true)
csv.required.set(false)
xml.required = true
html.required = true
}
}

codeCoverage.dependsOn {
subprojects*.test
dependsOn test
}

def dockerClientDir = new File(project.buildDir, "docker-client")
Expand Down

0 comments on commit b9cac17

Please sign in to comment.