title: Gradle test - print stdout/stderror for failed tests
body: <p>I'm introducing a Github actions pipeline to an existing project to run <code>./gradlew test</code>. Unsurprisingly, I've run into cases where tests pass locally but not on the build machine, due to various things like mismatching timezones.</p>
  
  <p>By default, gradle doesn't print the <code>stdout</code> for these tests. I am aware that it will do so if passed <code>--info</code>, however the test suite is some 1500 tests in size which makes the pipeline output extremely verbose (it actually makes my browser lag if I turn it on for the full suite and try to view the resulting output in Github). </p>
  
  <p>To fix the initial teething problems, I've resorted to also targeting the suites that are failing (e.g. <code>./gradlew test --tests "foo.bar.AppTest" --info</code>). This is a bit of a faff, though. Is there a way to tell gradle to print the stdout contents just for tests that have failed? This would put me in a much better position going forward!</p>