[GRADLE-1966] test.testLogging.showStandardStreams displays stderr not stdout Created: 26/Nov/11  Updated: 04/Jan/13  Resolved: 08/May/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-6
Fix Version/s: 1.1-rc-1

Type: Bug
Reporter: Blaine Simpson Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

The docs at http://gradle.org/releases/1.0-milestone-6/docs/dsl/org.gradle.api.tasks.testing.Test.html#org.gradle.api.tasks.testing.Test:testLogging say

//makes the standard streams (err and out) visible at console when running tests

but only stderr goes to the console. My test system definitely has both stdout and stderr streams hooked up because the "Standard output" and "Standard error" functions in the test reports display both stdout and stderr messages exactly as my code writes them.

It could be that some other setting is needed to route stdout to the console when using test.testLogging.showStandardStreams, but if so then since the property name indicates "standardStream*s*", this needs to be documented much better.



 Comments   
Comment by Blaine Simpson [ 26/Nov/11 ]

If this is fixed so that test.testLogging.showStandardStreams causes all of those low-level debugging messages that always end up in test report "Standard output" logs, then please do provide a test.testLogging.showErrorStream too, because nobody is going to want to see all of that stuff (just makes it difficult to notice real problems).

Comment by Adam Murdoch [ 08/May/12 ]

The test stdout was being logged at info level, which meant you needed to run with --info to see it. This has been changed so that now the test stdout is logged at lifecycle level.

Generated at Wed Jun 30 12:09:10 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.