jstemmer / go-junit-report

Convert Go test output to JUnit XML
MIT License
776 stars 224 forks source link

gotest output from 1.20+ is not properly parsed #169

Closed sdowell closed 11 months ago

sdowell commented 1 year ago

As of gotest 1.20, the output format has changed slightly. Previously when a test resumed execution, the === CONT string prefix was printed. Now the prefix is === NAME.

See https://go-review.git.corp.google.com/c/go/+/443596

This causes go-junit-report to fail when parsing gotest output from Go 1.20+. The parsing logic should be updated to be aware of the === NAME prefix, for example in the following code path: https://github.com/jstemmer/go-junit-report/blob/master/parser/gotest/gotest.go#L187