emma:emma

Note:This goal should be used as a Maven report.

Full name:

org.codehaus.mojo:emma-maven-plugin:1.0-alpha-3:emma

Description:

Instruments, tests, and generates an EMMA report.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Invokes the execution of the lifecycle phase test prior to executing itself.
  • Executes in its own lifecycle: emma.

Required Parameters

Name Type Since Description
outputDirectory File - Output directory for the report.
Default value is: ${project.reporting.outputDirectory}/emma.

Optional Parameters

Name Type Since Description
columns String - Specifies which report columns and in which order to use for report generation, as a comma-separated list of column ids.
Default value is: name,class,method,block,line.
dataFiles File[] - Class coverage data files.
depth String - Specifies the amount of detail to be included in the generated coverage reports. Valid values are: all, package, source, class, method.
Default value is: method.
metadataFile File - Location to store class coverage metadata.
Default value is: ${project.build.directory}/coverage.em.
metrics String - Specifies the threshold coverage metrics values for a given set of columns.
Default value is: method:70,block:70,line:80,class:100.
outputEncoding String - Report encoding.
Default value is: ${project.reporting.outputEncoding}.
sort String - Specifies report column sorting order, as a comma-separated list of columns ids prefixed with "+" for ascending or "-" for descending directions.
Default value is: +block,+name,+method,+class.
sourcePaths File[] - Source locations.
verbose boolean - Sets EMMA verbosity level to verbose.
Default value is: false.

Parameter Details

columns:

Specifies which report columns and in which order to use for report generation, as a comma-separated list of column ids.
  • Type: java.lang.String
  • Required: No
  • Expression: ${emma.report.columns}
  • Default: name,class,method,block,line

dataFiles:

Class coverage data files.
  • Type: java.io.File[]
  • Required: No

depth:

Specifies the amount of detail to be included in the generated coverage reports. Valid values are: all, package, source, class, method.
  • Type: java.lang.String
  • Required: No
  • Expression: ${emma.report.depth}
  • Default: method

metadataFile:

Location to store class coverage metadata.
  • Type: java.io.File
  • Required: No
  • Expression: ${emma.metadataFile}
  • Default: ${project.build.directory}/coverage.em

metrics:

Specifies the threshold coverage metrics values for a given set of columns.
  • Type: java.lang.String
  • Required: No
  • Expression: ${emma.report.metrics}
  • Default: method:70,block:70,line:80,class:100

outputDirectory:

Output directory for the report.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.reporting.outputDirectory}/emma

outputEncoding:

Report encoding.
  • Type: java.lang.String
  • Required: No
  • Expression: ${emma.report.encoding}
  • Default: ${project.reporting.outputEncoding}

sort:

Specifies report column sorting order, as a comma-separated list of columns ids prefixed with "+" for ascending or "-" for descending directions.
  • Type: java.lang.String
  • Required: No
  • Expression: ${emma.report.sort}
  • Default: +block,+name,+method,+class

sourcePaths:

Source locations.
  • Type: java.io.File[]
  • Required: No

verbose:

Sets EMMA verbosity level to verbose.
  • Type: boolean
  • Required: No
  • Expression: ${emma.verbose}
  • Default: false