Versions Compared

Key

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

...

  1. Add the 'sonar.java.coveragePlugin=emma' when executing the maven plugin. This can be set in pom.xml or in command line.

As it is possible for surefire and Cobertura, reusing already generated Emma reports is possible: the 'sonar.emma.reportPath' must be defined to indicate the directory where the .ec and the .em Emma files are generated.

...

  1. Or use the 'reuseReports' mode:

    Code Block
    titlereuseReports mode
    languagehtml/xml
    <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
    <!-- Path to the .ec and .em Emma files -->
    <sonar.emma.reportPath>emmaDir</sonar.emma.reportPath> 
Info
titleSupported report formats

Note that only reports of offline instrumentation are currently supported (*.ec and *.em files).

XML or HTML formats are not.

...