The typical way to use the Emma plugin is by registering a Emma
report in your project.xml
:
<reports> <report>maven-emma-plugin</report> [...] </reports>
Goal | Description |
---|---|
emma |
This is the default goal. It compiles the project code with Emma,
executes the unit tests and generate Emma reports by calling the
emma:report goal.
|
emma:test | Compiles the project code with Emma and executes the unit tests. |
emma:test-single | Execute a single unit test and view the test coverage result directly using the Emma Swing viewer. This is useful if you wish to quickly see the action that a single unit test has on the code it tests. |
emma:report |
Generate Emma test coverage reports with Emma. There are 3
possible reports: HTML, XML or Text. Whether a report is generated
is controller by the maven.emma.report.[report name]
properties. The generated reports show
exactly what lines of your code were exercised by your tests.
|
emma:on |
Activates Emma, which means that any other plugin calling the Ant
javac task will find its code compiled with Emma. This
is useful for example to Emma Cactus tests:
maven emma:on cactus .
|
emma:off |
Deactivates Emma, resetting back the normal javac compiler.
|