jstemmer / go-junit-report

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

Add flag to prefix testsuite name #100

Open bbrks opened 4 years ago

bbrks commented 4 years ago

I would like the ability to prefix the testsuite name with a custom string.

This will allow me to run tests, and generate unique XML reports for various combinations of $GOOS, $GOARCH, and other custom build tags.

E.g: -package-prefix="linux/arm/"

<testsuite ... name="linux/arm/github.com/example/example">

This is mainly so that I can have Jenkins read multiple junit reports, and aggregate them in a single pipeline job:

Screenshot 2020-01-14 at 12 40 27

Would you be open to a PR that adds a flag that will prepend something to the test suite package name like above?