Doing some refactoring I often have integration tests with failing tasks. In many cases the error message (task 'xxx' failed) is not enough to get know what happened. What's more I cannot simply add println result.standardoutput as the test execution is aborted (I need to switch to runTasksWithFailure()).
It would be handy to have a switch printOutputOnFailure (disabled by default) to print stdout (and stderr?) on failure when runTasksSuccessfully() was used.
Doing some refactoring I often have integration tests with failing tasks. In many cases the error message (
task 'xxx' failed
) is not enough to get know what happened. What's more I cannot simply addprintln result.standardoutput
as the test execution is aborted (I need to switch torunTasksWithFailure()
). It would be handy to have a switchprintOutputOnFailure
(disabled by default) to print stdout (and stderr?) on failure whenrunTasksSuccessfully()
was used.