jstemmer / go-junit-report

Convert Go test output to JUnit XML
MIT License
764 stars 222 forks source link

added -output parameter #120

Closed RyanLucchese closed 2 years ago

RyanLucchese commented 3 years ago

Sometimes it can be useful to see the original go test output along with creating the report. For example, in a CI system you can have the job log and the XML artifact. For this purpose I have added a -output parameter to output the JUnit report XML to a file, and to show the original go test output on the console.

jstemmer commented 2 years ago

Thanks for your contribution. I've recently released a new major version (v2) that is nearly a complete rewrite so I won't be able to merge this PR. The new version now has flags separate to write the report to a file, and copy the original test output to stdout.