mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-03 20:52:47 -05:00
Add support for Go 1.5 test results
An alternate approach that does not involve regular expressions. Fixes #15
This commit is contained in:
@ -329,6 +329,32 @@ var testCases = []TestCase{
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "11-go_1_5.txt",
|
||||
reportName: "11-report.xml",
|
||||
report: &parser.Report{
|
||||
Packages: []parser.Package{
|
||||
{
|
||||
Name: "package/name",
|
||||
Time: 50,
|
||||
Tests: []*parser.Test{
|
||||
{
|
||||
Name: "TestOne",
|
||||
Time: 20,
|
||||
Result: parser.PASS,
|
||||
Output: []string{},
|
||||
},
|
||||
{
|
||||
Name: "TestTwo",
|
||||
Time: 30,
|
||||
Result: parser.PASS,
|
||||
Output: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func TestParser(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user