Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4823

Surefire output lost if tests fail in a multi-module build

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.0-beta-3
    • None
    • Logging
    • None

    Description

      I'm filing this here as it only affects Maven 3, and I'm not sure which solution is preferable, but expect this to be moved to SUREFIRE.

      In a multi-module project, especially with a large number of modules, the reactor summary will scroll the surefire results out of the window. See also: http://java.dzone.com/articles/upgrading-maven-3

      One option is to repeat just the "Failed tests" part in the exception. This would require a change in Surefire. I similarly just added this advice to https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Compatibility+Notes#Maven3.xCompatibilityNotes-ErrorReporting

      However, if others think it might be better to adjust the output (eg, by only showing failed reactor modules, or making the summary optional) that's another possibility. I think given parallel builds and fail-at-end reactor options it's best to pursue the former, though.

      Attachments

        Activity

          People

            Unassigned Unassigned
            brett Brett Porter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: