Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367778 - console output of tests not shown with 0.14.0-SNAPSHOT
Summary: console output of tests not shown with 0.14.0-SNAPSHOT
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jan Sievers CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-03 11:59 EST by Steffen Pingel CLA
Modified: 2021-04-28 16:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!