Description / Features
Emma is an Open Source and robust code coverage tool. By default, Sonar is delivered with Cobertura and Clover plugins but if you prefer Emma you just have to install this plugin and go back to your favorite practice : the test driven development.
Usage & Installation
- Copy the jar into /extensions/plugins/ directory
- Restart Sonar Web server
To activate Emma on all projects :
- Log in as administrator
- Go to Configuration -> Settings -> General
- Set the property "Code coverage plugin" to "emma"
To activate Emma on selected projects :
- Add the property 'sonar.core.codeCoveragePlugin=emma' when executing the maven plugin. This can be set in pom.xml or in command line.
The XML report generated by Emma doesn't contain detailed information about the coverage of each line of code. So, when using this plugin, the "Coverage" tab in the Sonar source code viewer doesn't display coverage information.
Release 0.4 (4 issues)
|SONARPLUGINS-592||Make the plugin compatible with Sonar 2.2||Closed||Fixed|
|SONARPLUGINS-294||Make the plugin propagate metrics to all levels||Closed||Fixed|
|SONARPLUGINS-270||Switch of excluded/included sources for emma plugin||Closed||Fixed|
|SONARPLUGINS-52||Display hits by line in sources||Closed||Fixed|
Release 0.3 (3 issues)
|SONARPLUGINS-176||Add a check to only run on Java projects||Closed||Fixed|
|SONARPLUGINS-152||Emma : add property sonar.emma.reportPath to project settings page||Closed||Fixed|
|SONARPLUGINS-151||Emma : Upgrade to Sonar 1.10 API||Closed||Fixed|