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

showSuccess option for test reports: show reports only for failed tests

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8
    • Fix Version/s: 3.0
    • Component/s: Maven Surefire Plugin
    • Labels:
      None
    • Flags:
      Patch

      Description

      Use case:

      When you have a few tests, and some of them fail during development/refactoring, you find yourself repeatedly looking into target/surefire-reports to open the test report (txt) files with the errors and stack traces to analyze them. However, by default reports will be written also for successful tests, and both in txt and xml format (the xml files can already be omitted using disableXmlReport=false). This makes it hard to find the files that contain the failed tests.

      Solution proposal:

      Just as the maven-surefire-report-plugin already has a showSuccess option, that, if set to "false", will not report successful tests, the same should be available for the maven-surefire-plugin and the normal test goal.

      Either set "-DshowSuccess=false" on the command line or define "<showSuccess>false</showSuccess>" in the maven-surefire-plugin configuration of the pom, and reports for successful tests should not be written to the reports directory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alexander.klimetschek Alexander Klimetschek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: