org.codehaus.mojo.cobertura
Class CoberturaCheckMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.cobertura.AbstractCoberturaMojo
org.codehaus.mojo.cobertura.CoberturaCheckMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- CoberturaCheckIntegrationTestMojo
public class CoberturaCheckMojo
- extends AbstractCoberturaMojo
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.
- Author:
- Joakim Erdfelt
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoberturaCheckMojo
public CoberturaCheckMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
-
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2005–2015 Codehaus. All rights reserved.