Skip to content

Commit

Permalink
Add jacoco coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOellerer committed Oct 25, 2021
1 parent fc20432 commit a57880d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'checkstyle'
id 'jacoco'
id 'java'
id 'maven-publish'
id "org.owasp.dependencycheck" version "6.4.1.1"
Expand Down Expand Up @@ -71,6 +72,7 @@ javadoc {

test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}

task automatedTests(type: Test) {
Expand Down Expand Up @@ -108,5 +110,13 @@ sonarqube {
property "sonar.sources", "src/main/java/"
property "sonar.language", "java"
property "sonar.java.binaries", "."
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"
}
}

jacocoTestReport {
reports {
xml.enabled true
}
dependsOn test
}

0 comments on commit a57880d

Please sign in to comment.