Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-1466

Test output should include logs of standard out and standard error

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Resolution: Not A Bug
  • Affects Version/s: 1.0-milestone-1
  • Fix Version/s: None

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.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Daz DeBoer made changes - 03/Aug/11 3:29 PM
Field Original Value New Value
Workflow jira [ 12888 ] jira with pivotal tracker [ 13503 ]
Hide
Permalink
Adam Murdoch added a comment - 09/Nov/11 9:39 PM

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

Show
Adam Murdoch added a comment - 09/Nov/11 9:39 PM The stdout and stderr of a test is available on the page for the test.
Hide
Permalink
Szczepan Faber added a comment - 16/Mar/12 5:37 AM

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

Show
Szczepan Faber added a comment - 16/Mar/12 5:37 AM 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
Szczepan Faber made changes - 16/Mar/12 5:37 AM
Resolution Not A Bug [ 6 ]
Status Open [ 1 ] Resolved [ 5 ]
Luke Daley made changes - 03/Jan/13 5:09 AM
Status Resolved [ 5 ] Closed [ 6 ]
Workflow jira with pivotal tracker [ 13503 ] jira with pivotal tracker (no resolved, only closed) [ 17168 ]
Luke Daley made changes - 04/Jan/13 5:09 AM
Status Closed [ 6 ] Resolved [ 5 ]
Workflow jira with pivotal tracker (no resolved, only closed) [ 17168 ] Copy of jira with pivotal tracker (no closed, only resolved) [ 19855 ]
Unable to get TeamCity builds: No active plugin license is found! Please visit http://stiltsoft.com/teamcity for details

People

  • Assignee:
    Unassigned
    Reporter:
    Ben McCann
Vote (0)
Watch (1)

Dates

  • Created:
    08/Apr/11 4:59 PM
    Updated:
    04/Jan/13 5:09 AM
    Resolved:
    16/Mar/12 5:37 AM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.