Skip to content

Commit

Permalink
Merge pull request #78 from DDS-GmbH/feature/jacoco
Browse files Browse the repository at this point in the history
Add jacoco coverage report
  • Loading branch information
AntonOellerer authored Oct 25, 2021
2 parents fc20432 + a57880d commit 591e9d7
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 591e9d7

Please sign in to comment.