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

The redirectTestOutputToFile does not handle output before tests, nor does it handle capturing output on both streams

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.3
    • None
    • None
    • None
    • Patch

    Description

      The redirectTestOutputToFile feature does not handle cases when output is soaked up before the tests actually run, like output from static blocks or from test case constructors. If output is detected before the testSetStarting is invoked, then all further output will be due to a thrown ISE, which gets eatten up somewhere in surefire.

      Additionally, when a test outputs to STDOUT and STDERR, the output is not muxed properly into the -output.txt file.

      Attachments

        1. SUREFIRE-315.diff
          24 kB
          Jason Dillon
        2. SUREFIRE-349.patch
          3 kB
          Paul Gier

        Issue Links

          Activity

            People

              brett Brett Porter
              jason@planet57.com Jason Dillon
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: