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

View File

@ -1506,6 +1506,35 @@ var testCases = []TestCase{
},
},
},
{
name: "32-failed-summary.txt",
reportName: "32-report.xml",
report: &parser.Report{
Packages: []parser.Package{
{
Name: "github.com/jstemmer/test/failedsummary",
Duration: 5 * time.Millisecond,
Time: 5,
Tests: []*parser.Test{
{
Name: "TestOne",
Duration: 0,
Time: 0,
Result: parser.PASS,
Output: []string{},
},
{
Name: "Failure",
Duration: 0,
Time: 0,
Result: parser.FAIL,
Output: []string{"panic: panic"},
},
},
},
},
},
},
}
func TestParser(t *testing.T) {