joshdk / go-junit

🐜 Go library for ingesting JUnit XML reports
MIT License
59 stars 21 forks source link

Add support for reading stdout/stderr for each test case #27

Closed rwbergstrom closed 5 years ago

rwbergstrom commented 5 years ago

If tests fail, there's frequently additional info the system-out and system-err tags for each test case (at least with surefire test reports). The existing code captures suite-wide stdout/stderr, but misses the per-test-case variant.

This just duplicates the logic in order to capture per-test output as well.