Hello, team! I'm implementing contract testing in ...
# pact-broker
m
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
Because the provider build won’t know the name of the new branch that triggered the provider build
Also, there is some information in the URL of the pact that helps all the verification results match up to the consumer versions properly.
this is especially important when you have multiple builds running at the same time and they start inverleaving.
m
Thanks for the response @Beth (pactflow.io/Pact Broker/pact-ruby) it was really helpful 🙂