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

Report any extra attributes attached to a test

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      So if there are any extra attributes on a junit test result (possible, due to lack of schema) print them out in the html report.

      Useful for adding in links, and image tags.

      Umm attached an extra bit of functionality, allows a user to set a name for the report, useful if you do something like:

      ...
      <reportPlugins combine.children="append">
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-report-plugin</artifactId>
      <version>2.8.1</version>
      <reportSets>
      <reportSet>
      <id>integration-test-report</id>
      <reports>
      <report>report-only</report>
      </reports>
      <configuration>
      <name>Surefire (Integration)</name>
      <aggregate>true</aggregate>
      <detail>true</detail>
      <outputName>integration-test-report</outputName>
      <reportsDirectory>${basedir}/target/failsafe-reports/junitreport</reportsDirectory>
      </configuration>
      </reportSet>
      </reportSets>
      </plugin>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-report-plugin</artifactId>
      <version>2.8.1</version>
      <reportSets>
      <reportSet>
      <id>unit-test-report</id>
      <reports>
      <report>report-only</report>
      </reports>
      <configuration>
      <name>Surefire (Unit)</name>
      <detail>true</detail>
      <outputName>unit-test-report</outputName>
      <reportsDirectory>${basedir}/target/surefire-reports/junitreport</reportsDirectory>
      </configuration>
      </reportSet>
      </reportSets>
      </plugin>
      ....

        Attachments

        1. extra_attributes_patch.txt
          7 kB
          Rex Hoffman

          Issue Links

            Activity

              People

              • Assignee:
                tibordigana Tibor Digana
                Reporter:
                rexhoffman Rex Hoffman
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: