[
http://jira.codehaus.org/browse/SUREFIRE-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Gier updated SUREFIRE-315:
-------------------------------
Attachment: SUREFIRE-349.patch
Another patch for this issue. This patch fixes the issue, and only changes a
few lines of the code.
> The redirectTestOutputToFile does not handle output before tests, nor does it
> handle capturing output on both streams
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-315
> URL: http://jira.codehaus.org/browse/SUREFIRE-315
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.3
> Reporter: Jason Dillon
> Priority: Critical
> Fix For: 2.4
>
> Attachments: SUREFIRE-315.diff, SUREFIRE-349.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira