nebula-plugins / nebula-test

Test harness for Gradle plugins
Apache License 2.0
45 stars 18 forks source link

Show output on execution failure if not expected #114

Open szpak opened 5 years ago

szpak commented 5 years ago

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.