cobertura:cobertura

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

Full name:

org.codehaus.mojo:cobertura-maven-plugin:2.3:cobertura

Description:

Instruments, Tests, and Generates a Cobertura Report.

Attributes:

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

Required Parameters

Name Type Since Description
outputDirectory File - The output directory for the report.

Default value is: ${project.reporting.outputDirectory}/cobertura.

Optional Parameters

Name Type Since Description
format String - The format of the report. (supports 'html' or 'xml'. defaults to 'html')

formats String[] - The format of the report. (can be 'html' and/or 'xml'. defaults to 'html')

maxmem String - Maximum memory to pass to JVM of Cobertura processes.

quiet boolean 2.1 Only output cobertura errors, avoid info messages.

Default value is: false.

Parameter Details

format:
The format of the report. (supports 'html' or 'xml'. defaults to 'html')
  • Type: java.lang.String
  • Required: No
  • Expression: ${cobertura.report.format}

formats:
The format of the report. (can be 'html' and/or 'xml'. defaults to 'html')
  • Type: java.lang.String[]
  • Required: No

maxmem:
Maximum memory to pass to JVM of Cobertura processes.
  • Type: java.lang.String
  • Required: No
  • Expression: ${cobertura.maxmem}

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

quiet:
Only output cobertura errors, avoid info messages.
  • Type: boolean
  • Since: 2.1
  • Required: No
  • Expression: ${quiet}
  • Default: false