Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.6
-
Component/s: Junit 4.7+ (parallel) support
-
Labels:None
-
Environment:Windows/Cygwin, self-compiled version of the surefire-plugin 2.6-SNAPSHOT
-
Complexity:Intermediate
-
Number of attachments :
Description
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!
- mho.SimpleSuiteTest:testError - ERROR
-
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