Skip to content

Conversation

bbrks
Copy link

@bbrks bbrks commented Jan 24, 2020

Closes #100

Adds a -package-prefix flag, that can be used to namespace packages in reports.

This opens up the opportunity to use go-junit-report to generate unique XML reports for various combinations of $GOOS/$GOARCH (and other build tags) that won't conflict with each other.

More detail about this use-case is included in #100

Example usage:

export GOOS=linux
export GOARCH=arm64
go test -v 2>&1 | go-junit-report -package-prefix="${GOOS}/${GOARCH}" > report-${GOOS}-${GOARCH}.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add flag to prefix testsuite name
1 participant