Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pact Contract deduplication to exclude examples #693

Open
canny bot opened this issue Jun 26, 2024 · 1 comment
Open

Pact Contract deduplication to exclude examples #693

canny bot opened this issue Jun 26, 2024 · 1 comment

Comments

@canny
Copy link

canny bot commented Jun 26, 2024

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

Copy link
Author

canny bot commented Jun 26, 2024

This issue has been linked to a Canny post: Pact Contract deduplication to exclude examples 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants