Join Slack
Powered by
Hello, team! I'm implementing contract testing in ...
# pact-broker
m
Marek Czerwiński
10/05/2022, 10:47 PM
Hello, team! I'm implementing contract testing in my company and I have one question. Why generally pact URL is used instead of pact consumer selectors for builds triggered by a 'contract content changed' webhook? Is it better? For me, both approaches seem to work. Reference:
https://github.com/pactflow/example-provider/blob/master/src/product/product.pact.test.js#L32
b
Beth (pactflow.io/Pact Broker/pact-ruby)
10/06/2022, 12:43 AM
Because the provider build won’t know the name of the new branch that triggered the provider build
Beth (pactflow.io/Pact Broker/pact-ruby)
10/06/2022, 12:43 AM
Also, there is some information in the URL of the pact that helps all the verification results match up to the consumer versions properly.
Beth (pactflow.io/Pact Broker/pact-ruby)
10/06/2022, 12:44 AM
this is especially important when you have multiple builds running at the same time and they start inverleaving.
m
Marek Czerwiński
10/11/2022, 12:26 PM
Thanks for the response
@Beth (pactflow.io/Pact Broker/pact-ruby)
it was really helpful 🙂
Open in Slack
Previous
Next