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

link name wrong while using the report-only goal of the maven-surefire-report-plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9
    • None
    • None

    Description

      I have configured the maven-surefire-report-plugin to run the report-only goal and produce a report out of the maven-failsafe-plugin (integration tests).

      The problem is that the link on the generated site is not named as the the outputName defines in contradiction the name of the link is left to "Surefire Report" which results in my current project to have two links "Surefire Report" where the first one represents the report of maven-surefire-plugin and the second the report about the maven-failsafe-
      plugin.

      Technically does this mean that the generated HTML code for the navigation looks like this:

      <a href="failsafe-report.html" title="Surefire Report">Surefire Report</a>
      

      Here the pom.xml snippet how i configured the report-plugin:

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-report-plugin</artifactId>
              <version>2.9</version>
              <configuration>
                <outputName>failsafe-report</outputName>
                <reportsDirectories>
                  <reportsDirectory>${project.build.directory}/failsafe-reports</reportsDirectory>
                </reportsDirectories>
              </configuration>
              <reportSets>
                <reportSet>
                  <reports>
                    <report>report-only</report>
                  </reports>
                </reportSet>
              </reportSets>
            </plugin>
      

      This means the name of the link in the navigation must be changed as well. May be it's needed to have a supplemental configuration parameter for this or the outputName could be used instead.

      Attachments

        Activity

          People

            Unassigned Unassigned
            khmarbaise Karl Heinz Marbaise
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: