Gradle
  1. Gradle
  2. GRADLE-1466

Test output should include logs of standard out and standard error

    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

        Hide
        Adam Murdoch
        added a comment -

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

        Show
        Adam Murdoch
        added a comment - The stdout and stderr of a test is available on the page for the test.
        Hide
        Szczepan Faber
        added a comment -

        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 - 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

          People

          • Assignee:
            Unassigned
            Reporter:
            Ben McCann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: