The following example shows how to integrate jacoco and sonar into the ANT construct:
The github sample site provides an example of using Java runner, both unit test and integration tests are integrated:
This option must be adapted. Suitable sonar properties:
sonar.dynamicAnalysis=reuseReports
sonar.junit.reportsPath=reports/junit
sonar.java.coveragePlugin=jacoco
sonar.jacoco.reportPath=reports/jacoco/jacoco-ut.exec
sonar.jacoco.itReportPath=reports/jacoco/jacoco-it.exec
source
share