org.jacoco.maven
Class CheckMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jacoco.maven.AbstractJacocoMojo
org.jacoco.maven.CheckMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.jacoco.report.check.IViolationsOutput
public class CheckMojo
- extends AbstractJacocoMojo
- implements org.jacoco.report.check.IViolationsOutput
Checks that the code coverage metrics are being met.
- Since:
- 0.6.1
- Is defined by the goal name:
- check
- Is bound to the specified phase of the standard build lifecycle:
- verify
- Requires a Maven project to run:
- true
- Mojo is thread safe:
- true
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
void |
executeMojo()
Executes Mojo. |
void |
onViolation(org.jacoco.core.analysis.ICoverageNode node,
org.jacoco.report.check.Rule rule,
org.jacoco.report.check.Limit limit,
String message)
|
| 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 |
CheckMojo
public CheckMojo()
executeMojo
public void executeMojo()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoExecutionException
- Description copied from class:
AbstractJacocoMojo
- Executes Mojo.
- Specified by:
executeMojo in class AbstractJacocoMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException - if an unexpected problem occurs. Throwing this exception
causes a "BUILD ERROR" message to be displayed.
onViolation
public void onViolation(org.jacoco.core.analysis.ICoverageNode node,
org.jacoco.report.check.Rule rule,
org.jacoco.report.check.Limit limit,
String message)
- Specified by:
onViolation in interface org.jacoco.report.check.IViolationsOutput
Copyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.