Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367778

Summary: console output of tests not shown with 0.14.0-SNAPSHOT
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: TychoAssignee: Jan Sievers <jan.sievers>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan.sievers, t-oberlies
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Steffen Pingel CLA 2012-01-03 11:59:51 EST
Mylyn integration tests write to the System.err for monitoring progress. I noticed that in 0.14.0-SNAPSHOT the tycho-surefire-plugin no longer shows output that is written to System.err/out when running tests. 

Output with 0.13.0:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.eclipse.mylyn.tests.AllTests
System: Linux 2.6.18-028stab092.1 (i386) / linux-x86-gtk / Sun Microsystems Inc. Java HotSpot(TM) Client VM 1.6.0_26
Proxy : null (Platform) / [DIRECT] (Java)

Running testTrustAllSslProtocolSocketFactory(org.eclipse.mylyn.commons.tests.net.SslProtocolSocketFactoryTest)
Running testConnectCancelStalledConnect(org.eclipse.mylyn.commons.tests.net.WebUtilTest)
Running testExecute(org.eclipse.mylyn.commons.tests.net.WebUtilTest)
...

Results :

Failed tests: 
  testReadTimeout(org.eclipse.mylyn.commons.tests.net.WebUtilTest)
  testClose(org.eclipse.mylyn.commons.tests.net.TimeoutInputStreamTest)
  testCloseTimeout(org.eclipse.mylyn.commons.tests.net.TimeoutInputStreamTest)

Tests in error: 
  testTimeTracker(org.eclipse.mylyn.bugzilla.tests.BugzillaRepositoryConnectorTest)

Tests run: 2185, Failures: 3, Errors: 1, Skipped: 0

[ERROR] There are test failures.



Output with 0.14.0-SNAPSHOT:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.eclipse.mylyn.tests.AllTests
Tests run: 2315, Failures: 3, Errors: 3, Skipped: 0, Time elapsed: 1,912.402 sec <<< FAILURE!

Results :

Failed tests:   testUserInfo(org.eclipse.mylyn.bugzilla.tests.core.BugzillaXmlRpcClientTest): expected:<2> but was:<0>
  testMarkStaleTasks(org.eclipse.mylyn.trac.tests.core.TracTaskDataHandlerXmlRpcTest): Failed to update ticket modification time: ticket id=17, lastModified=1325510638, mostRectentlyModified=1325510639
  testClientManagerChangeTaskRepositorySettings(org.eclipse.mylyn.trac.tests.core.TracRepositoryConnectorTest): expected:<Web> but was:<XML-RPC>

Tests in error: 
  testXmlRpcBugGet(org.eclipse.mylyn.bugzilla.tests.core.BugzillaXmlRpcClientTest): XmlRpcException: 
  testValidateValidUrl(org.eclipse.mylyn.hudson.tests.client.HudsonClientTest)
  testValidateValidUrl(org.eclipse.mylyn.hudson.tests.client.HudsonClientTest)

Tests run: 2315, Failures: 3, Errors: 3, Skipped: 0

[ERROR] There are test failures.
Comment 1 Jan Sievers CLA 2012-01-10 12:13:53 EST
console logs should be found in target/surefire-reports/*.txt

But you are right the default for the surefire parameter "redirectTestOutputToFile"

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#redirectTestOutputToFile

was accidentally changed (and hardcoded) to true when porting to surefire 2.10 and I will revert this to the old behaviour (and make it configurable same as in maven-surefire-plugin).
Comment 2 Steffen Pingel CLA 2012-01-10 12:30:16 EST
Great, thanks!