org.codehaus.mojo.cobertura
Class CoberturaCheckMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.cobertura.AbstractCoberturaMojo
          extended by 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

Field Summary
 
Fields inherited from class org.codehaus.mojo.cobertura.AbstractCoberturaMojo
pluginClasspathList
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CoberturaCheckMojo()
           
 
Method Summary
 void execute()
          
 
Methods inherited from class org.codehaus.mojo.cobertura.AbstractCoberturaMojo
getDataFile, getProject, setTaskDefaults, skipMojo
 
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
 

Constructor Detail

CoberturaCheckMojo

public CoberturaCheckMojo()
Method Detail

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.