API Testing · Middle · Question 6 of 75
What is consumer-driven contract testing?
- 1The provider writes tests for every possible consumer on its own
- 2Consumers record expectations that the provider verifies in its pipeline
- 3Consumers sign a legal contract before they can use an API
Show the answer
Correct answer: Consumers record expectations that the provider verifies in its pipeline
Explanation
With Pact, the frontend's tests create a contract file. The backend's CI replays it to prove it still meets those expectations.