Hi folks, apologies for the <#C5F4KFKR8|> post but...
# general
g
Hi folks, apologies for the #C5F4KFKR8 post but I wasn’t sure which channel this best fit into. I’m trying to sort out Pact verification inside our Jenkins build. We’re using the Ruby (legacy) verifier and need to output as a JUnit file (hence legacy verifier, since the new native binary doesn’t seem to support JUnit). So I have
--format RspecJunitFormatter --out /output/junit.xml
. When I do a verification against multiple consumers, I would hope this would create a single JUnit file of the combined results, but it seems to overwrite the file for each consumer, meaning in the end I only get the last-run consumer’s results. If any other consumers fail, I lose their JUnit output and can’t tell where the failure occurred. This results in failed pipelines without knowing what the error was. Is it possible to either combine multiple consumer-runs into a single JUnit file? Or to output to a dir (
--out-dir /output
) or multiple files (
--out /outout/junit-{consumer}.xml
)?
m
Hmmm might be a @Beth (pactflow.io/Pact Broker/pact-ruby) question gfor the Ruby one. Would you mind please creating a feature request for the latest verifier here: https://github.com/pact-foundation/pact-reference/issues
b
it seems to overwrite the file for each consumer, meaning in the end I only get the last-run consumer’s results
that’s a pain. Can you raise an issue in https://github.com/pact-foundation/pact-provider-verifier please
👍 1
g
Sorry this has taken me so long, I ended up moving into something else entirely. Bugs now created 🙂https://github.com/pact-foundation/pact-reference/issues/257https://github.com/pact-foundation/pact-provider-verifier/issues/94
👍 1
m
No worries - thanks for that!