Update go-junit-report to use new parser

This commit is contained in:
Joël Stemmer
2019-10-08 00:32:03 +01:00
parent 7bc0f1a86b
commit 72cd8b3697
2 changed files with 45 additions and 11 deletions

View File

@ -1560,13 +1560,27 @@ var testCases = []TestCase{
},
}
/*
func TestNewOutput(t *testing.T) {
matchRegex := compileMatch(t)
for _, testCase := range testCases {
if !matchRegex.MatchString(testCase.name) {
continue
}
t.Run(testCase.name, func(t *testing.T) {
})
}
}
*/
func TestParser(t *testing.T) {
matchRegex := compileMatch(t)
for _, testCase := range testCases {
if !matchRegex.MatchString(testCase.name) {
continue
}
t.Logf("Test %s", testCase.name)
file, err := os.Open("testdata/" + testCase.name)
if err != nil {