| Wiki Markup |
|---|
{iframe:src=http://update.sonarsource.org/plugins/emma.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
Compatibility
...
Matrix
Plugin | 1.0.1 | 1.1, 1.2.X |
|---|
emma-maven-plugin | 1.0-alpha-2 | 1.0-alpha-3 |
|---|
emma | 2.0.5312 | 2.1.5320 |
|---|
Description / Features
Emma is an Open Source and robust code coverage tool. By default, Sonar is delivered with JaCoCo and 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
...
- Log in as administrator
- Go to Configuration - > Settings - > General
- Set the property "Code coverage plugin" to "emma"
...
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.
| Code Block |
|---|
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.emma.reportPath>emmaDir</sonar.emma.reportPath>
|
...
| Info |
|---|
| title | Supported report formats |
|---|
|
Note that only reports of offline instrumentation are currently supported (*.ec and *.em files). XML or HTML formats are not. |
Known Limitations
Branch coverage is not calculated as such notion does not exist in Emma.
Changelog
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.2.1 |
|---|
| height | 90 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17631&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.2 |
|---|
| height | 90 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17420&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.1 |
|---|
| height | 90 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17046&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.0.1 |
|---|
| height | 90 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16912&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.0 |
|---|
| height | 150 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16020&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 0.3 |
|---|
| height | 120 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=15509&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 0.2 |
|---|
| height | 120 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=15143&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 0.1 |
|---|
| height | 120 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=14993&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|