We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be119b8 commit cd8134eCopy full SHA for cd8134e
build.xml
@@ -60,6 +60,9 @@
60
<formatter type="xml"/>
61
</test>
62
</junit>
63
+ <exec executable="./print_test_errors.sh" failonerror="true">
64
+ <arg value="."/>
65
+ </exec>
66
</target>
67
68
<target name="clean" description="clean up">
print_test_errors.sh
@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+#
3
+# Read junit test-reports and print a summary of the error-cases, including the stack trace.
4
+# Will exit with status 1 if there are any errors, otherwise exit status 0.
5
6
+# By default will scan all files in "./test.reports".
7
8
+# Usage "./print_test_errors.sh <test-report-path>
9
10
+awk '/<(failure|error)/,/\/(failure|error)/ {print prev; has_err=1} {prev=$0} END {exit has_err}' ${1:-test.reports/*}
0 commit comments