cobertura:check
Full name:
org.codehaus.mojo:cobertura-maven-plugin:2.7:check
Description:
Check the coverage percentages for unit tests from the last
instrumentation, and optionally fail the build if the targets are
not met. To fail the build you need to set
configuration/check/haltOnFailure=true in the plugin's
configuration.
Attributes:
- Requires a Maven project to be executed.
- Binds by default to the lifecycle phase: verify.
- Invokes the execution of the lifecycle phase test prior to executing itself.
- Executes in its own lifecycle: cobertura.
Required Parameters
Name |
Type |
Since |
Description |
check |
ConfigCheck |
- |
The Check Configuration.
|
forceMojoExecution |
boolean |
2.5 |
Usually most of our Cobertura mojos will not get executed on parent
poms. Setting this parameter to true will force the
execution of this mojo, even if it would usually get skipped in
this case. Default value is: false. User property is: cobertura.force. |
Optional Parameters
Name |
Type |
Since |
Description |
maxmem |
String |
- |
Maximum memory to pass to the JVM for Cobertura processes. Default value is: 64m. User property is: cobertura.maxmem. |
quiet |
boolean |
- |
Only output Cobertura errors, avoid info messages. Default value is: false. User property is: quiet. |
skip |
boolean |
2.5 |
When true, skip the execution. Default value is: false. User property is: cobertura.skip. |
Parameter Details
check:
- Type: org.codehaus.mojo.cobertura.configuration.ConfigCheck
- Required: Yes
forceMojoExecution:
Usually most of our Cobertura mojos will not get executed on parent
poms. Setting this parameter to true will force the
execution of this mojo, even if it would usually get skipped in
this case.
- Type: boolean
- Since: 2.5
- Required: Yes
- User Property: cobertura.force
- Default: false
maxmem:
Maximum memory to pass to the JVM for Cobertura processes.
- Type: java.lang.String
- Required: No
- User Property: cobertura.maxmem
- Default: 64m
quiet:
Only output Cobertura errors, avoid info messages.
- Type: boolean
- Required: No
- User Property: quiet
- Default: false
skip:
When true, skip the execution.
- Type: boolean
- Since: 2.5
- Required: No
- User Property: cobertura.skip
- Default: false