Report testsuite failures even if all tests succeeded

Fixes #87
This commit is contained in:
Joël Stemmer
2019-10-03 23:53:41 +01:00
parent 8b849e7995
commit 1b8b67371c
4 changed files with 63 additions and 10 deletions

5
testdata/32-failed-summary.txt vendored Normal file
View File

@ -0,0 +1,5 @@
=== RUN TestOne
--- PASS: TestOne (0.00s)
PASS
panic: panic
FAIL github.com/jstemmer/test/failedsummary 0.005s

12
testdata/32-report.xml vendored Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite tests="2" failures="1" time="0.005" name="github.com/jstemmer/test/failedsummary">
<properties>
<property name="go.version" value="1.0"></property>
</properties>
<testcase classname="failedsummary" name="TestOne" time="0.000"></testcase>
<testcase classname="failedsummary" name="Failure" time="0.000">
<failure message="Failed" type="">panic: panic</failure>
</testcase>
</testsuite>
</testsuites>