Skip to content

Commit

Permalink
CQI-9: test coverage init
Browse files Browse the repository at this point in the history
  • Loading branch information
olewandowski1 committed Oct 30, 2023
1 parent 0021e3a commit c8db979
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,15 @@ sonarqube {
property "sonar.projectKey", "OpenLMIS_openlmis-referencedata"
property "sonar.organization", "openlmis"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.coveragePlugin", "jacoco"
//Tells SonarQube where the unit tests execution reports are
property "sonar.junit.reportsPath", "build/test-results/test"
//Tells SonarQube where the code coverage reports are
property "sonar.jacoco.reportPaths", "build/jacoco/test.exec,build/jacoco/integrationTest.exec"
properties["sonar.tests"] += sourceSets.integrationTest.java
}
}
project.tasks['sonarqube'].dependsOn integrationTest

pmd {
toolVersion = '5.4.0'
Expand Down

0 comments on commit c8db979

Please sign in to comment.