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

@ -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),
})