mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-06 14:02:52 -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:
@ -78,9 +78,9 @@ func Parse(r io.Reader, pkgName string) (*Report, error) {
|
||||
|
||||
if strings.HasPrefix(line, "=== RUN ") {
|
||||
// new test
|
||||
cur = line[8:]
|
||||
cur = strings.TrimSpace(line[8:])
|
||||
tests = append(tests, &Test{
|
||||
Name: line[8:],
|
||||
Name: cur,
|
||||
Result: FAIL,
|
||||
Output: make([]string, 0),
|
||||
})
|
||||
|
Reference in New Issue
Block a user