Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Package Prefix option for report namespacing #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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