sr
12/13/2023, 12:08 PMBas Dijkstra
12/13/2023, 12:47 PMsr
12/13/2023, 1:23 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
So for 1. Assuming our client code never changes, the client test will always pass, even if the provider code changes. The client will not know about any provider changes, so the client test will always pass. (Unless of course we change our internal client business logic which breaks the test but that would be caught in a unit test, not a pact test). Is the purpose of a client pact test really just to generate a pact file and is not really testing anything?
However the provider verify tests will fail if they push a change which will break the contract.... (edited)Yes, and hopefully preventing a production issue! This is because of the information you provided in step 1. You can also use this information to remove unused fields from the provider.
Matt (pactflow.io / pact-js / pact-go)
sr
12/13/2023, 10:20 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Order
). That’s important, because it means it knowns how to handle the result. If it used an arbitrary API client then it would be useless