Class PitReportAggregationModuleMojo

  • 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-module",
          defaultPhase=PREPARE_PACKAGE,
          aggregator=true)
    public class PitReportAggregationModuleMojo
    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. then call the mojo ONLY on the parent mvn pitest:report-aggregate-module --non-recursive

    • Constructor Detail

      • PitReportAggregationModuleMojo

        public PitReportAggregationModuleMojo()
    • 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