Package org.pitest.maven.report
Class PitAggregationMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.reporting.AbstractMavenReport
-
- org.pitest.maven.report.PitReportMojo
-
- org.pitest.maven.report.PitAggregationMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.apache.maven.reporting.MavenMultiPageReport,org.apache.maven.reporting.MavenReport
@Mojo(name="report-aggregate", defaultPhase=PREPARE_PACKAGE) public class PitAggregationMojo extends PitReportMojoGoal which aggregates the results of multiple tests into a single result.Based upon Jacoco's ReportAggregateMojo, creates a structured report (HTML, XML, or CSV) from multiple projects. The report is created the all modules this project includes as dependencies.
To successfully aggregate reports, each of the individual sub-module reports must have the exportLineCoverage set to
true, and must export an XML formatted report. The the developer would simply include an extra module, which has all of the modules which contain reports as dependencies. That "report-aggregation" module would then call this mojo to aggregate all of the individual reports into a single report.
-
-
Constructor Summary
Constructors Constructor Description PitAggregationMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteReport(Locale locale)StringgetDescription(Locale locale)-
Methods inherited from class org.pitest.maven.report.PitReportMojo
canGenerateReport, getInputEncoding, getName, getOutputDirectory, getOutputEncoding, getOutputName, getProject, getReportsDirectory, getSiteRenderer, getSourceDataFormats, isExternalReport, isSkip
-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory, setReportOutputDirectory
-
-
-
-
Method Detail
-
getDescription
public String getDescription(Locale locale)
- Specified by:
getDescriptionin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
getDescriptionin classPitReportMojo
-
executeReport
protected void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
- Overrides:
executeReportin classPitReportMojo- Throws:
org.apache.maven.reporting.MavenReportException
-
-