Add support for Go 1.5 test results

An alternate approach that does not involve regular expressions.

Fixes #15
This commit is contained in:
Aiden Scandella
2015-08-23 10:54:13 -07:00
parent 8faee8c123
commit 1b60a11396
4 changed files with 44 additions and 2 deletions

View File

@ -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) {