mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-07 14:08:07 -05:00

When `go test` is run on multiple packages and with coverage collection enabled, it appends coverage information to the final result line for each package. With this change, properly handle this additional information and add it into the JUnit XML report as a property of the test suite.
8 lines
151 B
Plaintext
8 lines
151 B
Plaintext
=== RUN TestZ
|
|
--- PASS: TestZ (0.06 seconds)
|
|
=== RUN TestA
|
|
--- PASS: TestA (0.10 seconds)
|
|
PASS
|
|
coverage: 13.37% of statements
|
|
ok package/name 0.160s
|