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: Maven Surefire Plugin
         Environment: Windows/Cygwin, self-compiled version of the 
surefire-plugin 2.6-SNAPSHOT
            Reporter: Mag Hoehme
         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

        

Reply via email to