Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Maven supports this mode with the following code coverage tools: JaCoCo, Cobertura, Emma and Clover.

The Sonar SonarQubeTM Ant Task and the Sonar SonarQubeTM Runner do not support this mode.

...

Sample projects are available on github that can be browsed or downloaded:

First, tell SonarQubeTM to reuse existing reports:

...

Code Block
languagehtml/xml
<property name="sonar.dynamicAnalysis" value="reuseReports" />

With Sonar SonarQubeTM Runner in your sonar-project.properties file:

...

Code Block
languagehtml/xml
<property name="sonar.surefire.reportsPath" value="[baseDir]/myReports/myExecutionReports" />

With Sonar SonarQubeTM Runner in your sonar-project.properties file:

...

Code Block
languagehtml/xml
<property name="sonar.jacoco.reportPath" value="[baseDir]/myReports/myCodeCoverageReport" />

With Sonar SonarQubeTM Runner in your sonar-project.properties file:

...