pact-foundation/pact_broker-client

is there a way to publish verification results through pact broker cli tool?

Closed this issue · 2 comments

The read me file says pact broker client can be used to publish verification results but I couldn't find the right command to do this through cli tool. Or am i missing something? I see pact-broker publish but that is to publish pacts. Is there something similar to publish verification results?

Screenshot 2022-04-13 at 15 34 32

That line may be referring to the can-i-deploy which retrieves verification results

https://docs.pact.io/pact_broker/client_cli/readme#can-i-deploy

but also the pact-provider-verifier which is packaged into the docker CLI, in the Pact CLI Docker image llink.

When you run the pact-verifier, you can choose whether to publish results, which is a separate tool which doesn't appear to be referenced in that readme.

Publishing the verification results is done in the verification task itself. There is no separate tool for this, because the verification results need to be published when the verification fails (and hence, the process exits with an error status). Trying to manage a separate task that only runs after the failure of a previous step would be complex to manage, so it's much simpler if the verification tool does that part itself.