QA Fundamentals · Middle · Question 23 of 75
What does contract testing check?
- 1That a legal contract with the customer is signed
- 2That a consumer and a provider agree on their API's format
- 3That each class implements its declared interface
Show the answer
Correct answer: That a consumer and a provider agree on their API's format
Explanation
With consumer-driven contracts (for example Pact), the consumer records what it expects and the provider verifies it in its own pipeline, without a full end-to-end environment.