
@Mojo(name="check",
threadSafe=false)
@Execute(lifecycle="scoverage",
phase=TEST)
public class SCoverageCheckMojo
extends org.apache.maven.plugin.AbstractMojo
scoverage life cycle.
scoverage life cycle project is compiled with SCoverage instrumentation
and unit tests are executed before checking.
| Constructor and Description |
|---|
SCoverageCheckMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Checks tests coverage and optionally fails the build if minimum level not reached.
|
public void execute()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException - if coverage is below minimumCoverage and failOnMinimumCoverage option setCopyright © 2014–2022. All rights reserved.