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

JUnit formatting overwrites previous runs when verifying multiple pacts #94

Open
gregtyler opened this issue Feb 21, 2023 · 0 comments
Open

Comments

@gregtyler
Copy link

gregtyler commented Feb 21, 2023

Original Slack thread

When running with --format RspecJunitFormatter --out /out/pact.xml, the verifier outputs a JUnit XML file containing the results. However, if the verifier is run against multiple consumers (e.g. we use --consumer-version-tag main to pick up the latest pact from each of 4 consumers) then the XML file is recreated/overwritten for each one. This means you only end up with the results for the last consumer run.

This can be very confusing because the verifier can fail but produce JUnit output suggesting everything was successful (if the last consumer passes but at least one other fails).

Would it be possible to either output one JUnit file for all consumers (e.g. --outdir /out), or to allow --out to contain a variable so that it can produce a predictable file for each consumer (e.g. --out /out/pact-{consumer}.xml)?

(NB: we can't use the new verifier because it doesn't yet support JUnit output)

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

No branches or pull requests

1 participant