You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
https://pact.canny.io/admin/board/feature-requests/p/pact-contract-deduplication-to-exclude-examples
The text was updated successfully, but these errors were encountered: