[
http://jira.codehaus.org/browse/SUREFIRE-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Rosenvold closed SUREFIRE-628.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.6
Assignee: Kristian Rosenvold
We are unable to do anything about output that is not associated with a test
because making assumptions about this would have severe implications for
embedded use. Therefore, test output that cannot be associated with a testcase
will just float right out to the console and the fix that was made for 2.6 is
the end of this issue.
> Parallel Execution: Output from junit.framework.TestListener.endTest() is
> swallowed
> -----------------------------------------------------------------------------------
>
> Key: SUREFIRE-628
> URL: http://jira.codehaus.org/browse/SUREFIRE-628
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.7+ (parallel) support
> Environment: Windows/Cygwin, self-compiled version of the
> surefire-plugin 2.6-SNAPSHOT
> Reporter: Mag Hoehme
> Assignee: Kristian Rosenvold
> Fix For: 2.6
>
> Attachments: surefire-output.tar.gz
>
>
> I am using a junit.framework.TestListener to print some bookkeeping
> information on System.out before and after the testcase.
> When executed single-threaded, everything works fine, and I am getting both
> messages before and after the testcase. In parallel, only the message before
> the start of testcase is printed, while the message after the testcase
> disappears.
> ----------------------------------------------------------------------------------------
> Testcase output (single-threaded execution): both messages are printed
> ----------------------------------------------------------------------------------------
> Running mho.SimpleSuiteTest
> >>> starting testcase mho.SimpleSuiteTest
> ### mho.SimpleSuiteTest:testError - ERROR
> >>> finished testcase mho.SimpleSuiteTest, duration=0ms
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.062 sec <<<
> FAILURE!
> Results :
> Tests in error:
> testError(mho.SimpleSuiteTest)
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
> ----------------------------------------------------------------------------------------
> Testcase output (parallel execution): second message is missing
> ----------------------------------------------------------------------------------------
> Running mho.SimpleSuiteTest
> >>> starting testcase mho.SimpleSuiteTest
> ### mho.SimpleSuiteTest:testError - ERROR
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.031 sec <<<
> FAILURE!
> Results :
> Tests in error:
> testError(mho.SimpleSuiteTest)
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
--
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