Pact Contract deduplication to exclude examples
closed
nuno frias
When you do the provider verification, the deduplication mechanism uses the full contract content as the basis for deduplication.
This means that if the example data in the contract is different between the main branch and the feature branch (even though the rules are the same) the provider test will run twice -- or even more than twice depending on the consumer version selectors.
I suggest the example section of the Pact contract be excluded from the deduplication check, this would allow developers to include dynamic values in their consumer tests while ensuring that when the provider verification occurs only truly different Pact contracts (i.e. with different rules) get verified.
Yousaf Nabi
closed
Tracking via linked GitHub issue - https://github.com/pact-foundation/pact_broker/issues/693