Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 64 Next »

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 but if you prefer Emma you just have to install this plugin and go back to your favorite practice: the test driven development.

Installation

  1. Install the Emma plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
  2. Restart the Sonar server

Usage

To make the default code coverage tool:

  1. Log in as an administrator
  2. Go to Settings > Configuration > General Settings > Java
  3. Set the 'sonar.java.coveragePlugin' property to 'emma'

To activate Emma on some projects:

  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.

Supported report formats

Icon

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

XML or HTML formats are not.

See also the Code Coverage by Unit Tests tutorial.

Known Limitations

Branch coverage is not calculated as such notion does not exist in Emma.

Change Log

Loading

Release 1.3 (2 issues)

 

Loading

Release 1.2.1 (1 issues)

 

Loading

Release 1.2 (2 issues)

 

Loading

Release 1.1 (2 issues)

 

Loading

Release 1.0.1 (2 issues)

 

Loading

Release 1.0 (4 issues)

 

Loading

Release 0.3 (3 issues)

 

Loading

Release 0.2 (3 issues)

 

Loading

Release 0.1 (3 issues)

  • No labels