Hello everyone,
I am trying to show coverage of integration test in Sonar, This is my project structure:
A:
| Backend code ( unit test) - after build generate war and deploy to container in docker
| integration test
I have applied jacoco to generate report by following document https://medium.com/@priyankagour/code-coverage-with-jacoco-and-sonarqube-831f1686ef81
Here is my gradle file:
sonarqube {
properties {
property "sonar.junit.reportPaths", "${project.buildDir}/test-results, ${project.buildDir}/test-results/test, ${project.buildDir}/testArquillian-results"
property "sonar.jacoco.reportPaths", "${project.buildDir}/jacoco/test.exec, ${project.buildDir}/jacoco/testArquillian.exec, ${project.buildDir}/jacoco/jacoco.exec, ${project.buildDir}/jacoco/testIntegration.exec"
property "sonar.jacoco.itReportPath", "${project.buildDir}/jacoco/testIntegration.exec, ${project.buildDir}/jacoco/jacoco.exec"
property "sonar.branch.name", gitBranch()
property "sonar.coverage.jacoco.xmlReportPaths","${project.buildDir}/reports/jacoco/test/jacocoTestReport.xml"
}
}
Sonar can show coverage of unit test, but I can see no coverage of integration.
I am stuck on showing line of code, and coverage of integration test project even though already have exec file