Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2100

Improve behaviour for surefire-report goal with aggregate parameter

    XMLWordPrintableJSON

Details

    Description

      The aggregate parameter affects the default reportDirectories: https://github.com/apache/maven-surefire/blob/6f0fb404f89728fb65f37c9db7711fff6af55d5d/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/AbstractSurefireReportMojo.java#L201-L207.

      This default behaviour only makes sense though for a Maven project containing multiple modules. For a single Maven project this default behaviour leads to the fact that always an empty report is being generated as the root project is always skipped.

      Although one could argue that aggregate should only ever be set for multimodule projects, one can easily fix the logic here to also work for a singlemodule project. Also the javadoc of this argument does not state any limitations on when to use it (https://maven.apache.org/surefire/maven-surefire-report-plugin/failsafe-report-only-mojo.html#aggregate)

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: