Class 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 PitReportMojo
    Goal 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 Detail

      • PitAggregationMojo

        public PitAggregationMojo()
    • Method Detail

      • getDescription

        public String getDescription​(Locale locale)
        Specified by:
        getDescription in interface org.apache.maven.reporting.MavenReport
        Overrides:
        getDescription in class PitReportMojo
      • executeReport

        protected void executeReport​(Locale locale)
                              throws org.apache.maven.reporting.MavenReportException
        Overrides:
        executeReport in class PitReportMojo
        Throws:
        org.apache.maven.reporting.MavenReportException