Hey <team.In> consumer driven contract test. I was...
# general
a
Hey team.In consumer driven contract test. I was curious to understand what is the benefit of me a consumer testing the producer, instead of the producer making sure they keep their API contract and have test in place to validate that each new release does not brake their API as they agreed to provide it to their consumers?
m
Your job is not to test the producer - I think this is a common misconception. It’s a side effect, but not the key goal. Your job is to test the client and make your requirements clear to the producer, so that they can evolve their API without breaking any of its consumers. Testing an API interface and its functionality is a necessary pre-condition, but is often not sufficient to prevent breaking changes (see Hyrum’s law). I think this FAQ helps clarify some of the other key benefits though. https://docs.pact.io/faq/convinceme#but-i-already-have-a-local-mock-server-eg-vcr-mockserver
💯 2