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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
execute()
Generates SCoverage report.void
getDescription
(Locale locale) boolean
void
setReportOutputDirectory
(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:
getName
in interfaceMavenReport
-
getDescription
- Specified by:
getDescription
in interfaceMavenReport
-
generate
- Specified by:
generate
in interfaceMavenReport
- Throws:
MavenReportException
-
getOutputName
- Specified by:
getOutputName
in interfaceMavenReport
-
isExternalReport
public boolean isExternalReport()- Specified by:
isExternalReport
in interfaceMavenReport
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReport
in interfaceMavenReport
-
getCategoryName
- Specified by:
getCategoryName
in interfaceMavenReport
-
getReportOutputDirectory
- Specified by:
getReportOutputDirectory
in interfaceMavenReport
-
setReportOutputDirectory
- Specified by:
setReportOutputDirectory
in interfaceMavenReport
-
execute
Generates SCoverage report.- Specified by:
execute
in interfaceMojo
- Throws:
MojoExecutionException
- if unexpected problem occurs
-