[GRADLE-1466] Test output should include logs of standard out and standard error Created: 08/Apr/11  Updated: 04/Jan/13  Resolved: 16/Mar/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-1
Fix Version/s: None

Type: New Feature
Reporter: Ben McCann Assignee: Unassigned
Resolution: Not A Bug Votes: 0


 Description   

I opened up build/reports/tests/index.html and all it said was that my tests were failing, but it gave me no useful information for debugging. My tests pass in Eclipse, but fail on the command line using Gradle, so it's a bit frustrating that all the output is being swallowed. I'd really like access to the standard out and standard error from the test runs in order to be able to debug this.



 Comments   
Comment by Adam Murdoch [ 09/Nov/11 ]

The stdout and stderr of a test is available on the page for the test.

Comment by Szczepan Faber [ 16/Mar/12 ]

Hello,

The standard out/err is available in the report. Please click on a test and then check out the standard output tab.

Also, recent Gradle versions have a new setting to see output in the console:

test.testLogging.showStandardStreams = true

If that's ok, I'm closing the issue

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