Maven 1.x Test Plugin
  1. Maven 1.x Test Plugin
  2. MPTEST-43

Add the ability to control junit's showoutput attribute

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8
    • Labels:
      None
    • Number of attachments :
      0

      Description

      There are situations in which the full output of the junit task is needed.
      This happens typically when the test fails due to an internal error (as opposed to a test failure). For example, if you have a test case which doesn't have all required classes in its classpath, invoking this test will create a ClassNotFoundException. Other examples might include test cases which rely on the presence or execution of native code.
      The stack trace for junit errors that occur before the test method is executed will only be visible if the showoutput attribute of the junit task is set to true.

      I would suggest to either make the showoutput attribute configurable through an additional maven property and/or to set showoutput=true unconditionally if maven is executed in debug mode (-X option).

        Activity

        Hide
        Lukas Theussl added a comment -

        The showoutput attribute is set if Maven is executed in debug (-X) mode.

        Show
        Lukas Theussl added a comment - The showoutput attribute is set if Maven is executed in debug (-X) mode.

          People

          • Assignee:
            Lukas Theussl
            Reporter:
            Matthias Kerkhoff
          • Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: