diff --git a/build.xml b/build.xml index 71df3a6..5449472 100644 --- a/build.xml +++ b/build.xml @@ -60,6 +60,9 @@ + + + diff --git a/print_test_errors.sh b/print_test_errors.sh new file mode 100755 index 0000000..b81620a --- /dev/null +++ b/print_test_errors.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# +# Read junit test-reports and print a summary of the error-cases, including the stack trace. +# Will exit with status 1 if there are any errors, otherwise exit status 0. +# +# By default will scan all files in "./test.reports". +# +# Usage "./print_test_errors.sh +# +awk '/<(failure|error)/,/\/(failure|error)/ {print prev; has_err=1} {prev=$0} END {exit has_err}' ${1:-test.reports/*}