Maven
  1. Maven
  2. MNG-4823

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

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 3.0-beta-3
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      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.

        Activity

        Jason van Zyl made changes -
        Field Original Value New Value
        Resolution Incomplete [ 4 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Brett Porter
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: