Maven
  1. Maven
  2. MNG-4823

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 3.0-beta-3
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
      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.

        Activity

        Brett Porter created issue -
        Jason van Zyl made changes -
        Field Original Value New Value
        Resolution Incomplete [ 4 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Mark Thomas made changes -
        Workflow jira [ 12715094 ] Default workflow, editable Closed status [ 12754706 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12951457 ] Default workflow, editable Closed status [ 12987752 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development