mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-08 06:28:08 -05:00
Remove parsing additional test output
This commit is contained in:
parent
23311beb18
commit
64b850a234
@ -74,7 +74,7 @@ func Parse(r io.Reader) (*Report, error) {
|
|||||||
tests = make([]Test, 0)
|
tests = make([]Test, 0)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// expecting test output or test status
|
// expecting test status
|
||||||
if matches := regexStatus.FindStringSubmatch(line); len(matches) == 4 {
|
if matches := regexStatus.FindStringSubmatch(line); len(matches) == 4 {
|
||||||
if matches[1] == "PASS" {
|
if matches[1] == "PASS" {
|
||||||
test.Result = PASS
|
test.Result = PASS
|
||||||
@ -87,12 +87,6 @@ func Parse(r io.Reader) (*Report, error) {
|
|||||||
|
|
||||||
tests = append(tests, *test)
|
tests = append(tests, *test)
|
||||||
test = nil
|
test = nil
|
||||||
} else {
|
|
||||||
if len(test.Output) > 0 {
|
|
||||||
test.Output += "\n" + line
|
|
||||||
} else {
|
|
||||||
test.Output = line
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user