Add stdout from bash processes to test reports

Its quite hard to debug what went wrong if a test fails
so it would be very helpful to have a record somewhere of
the stdout from bash.  This patch appends it to the test
report.
This commit is contained in:
Dave Syer
2013-02-06 14:55:49 +00:00
parent 19072c7e16
commit 04c775ce3e

View File

@@ -48,7 +48,11 @@ Before(){
}
}
After(){
After(){ scenario ->
def output = bash?.output
if (output) {
scenario.write("\nOutput: \n${output}")
}
bash?.stop()
cleanUp()
}