Package org.scoverage.plugin
Class SCoverageReportMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.scoverage.plugin.SCoverageReportMojo
- All Implemented Interfaces:
ContextEnabled,Mojo,MavenReport
- Direct Known Subclasses:
SCoverageIntegrationReportMojo,SCoverageReportOnlyMojo
@Mojo(name="report",
threadSafe=false)
@Execute(lifecycle="scoverage",
phase=TEST)
public class SCoverageReportMojo
extends AbstractMojo
implements MavenReport
Generates code coverage by unit tests report in forked
In forked
scoverage life cycle.
In forked
scoverage life cycle project is compiled with SCoverage instrumentation
and unit tests are executed before report generation.
- Since:
- 1.0.0
- Author:
- Grzegorz Slowikowski
-
Field Summary
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidexecute()Generates SCoverage report.voidgetDescription(Locale locale) booleanvoidsetReportOutputDirectory(File reportOutputDirectory) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
SCoverageReportMojo
public SCoverageReportMojo()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceMavenReport
-
getDescription
- Specified by:
getDescriptionin interfaceMavenReport
-
generate
- Specified by:
generatein interfaceMavenReport- Throws:
MavenReportException
-
getOutputName
- Specified by:
getOutputNamein interfaceMavenReport
-
isExternalReport
public boolean isExternalReport()- Specified by:
isExternalReportin interfaceMavenReport
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReportin interfaceMavenReport
-
getCategoryName
- Specified by:
getCategoryNamein interfaceMavenReport
-
getReportOutputDirectory
- Specified by:
getReportOutputDirectoryin interfaceMavenReport
-
setReportOutputDirectory
- Specified by:
setReportOutputDirectoryin interfaceMavenReport
-
execute
Generates SCoverage report.- Specified by:
executein interfaceMojo- Throws:
MojoExecutionException- if unexpected problem occurs
-