API Testing · Middle · Question 7 of 75
What can contract tests catch that unit tests on each side can't?
- 1Visual bugs in the consumer's user interface
- 2Slow database queries inside the provider service
- 3A provider change that breaks what a consumer relies on
Show the answer
Correct answer: A provider change that breaks what a consumer relies on
Explanation
Each side may pass its own tests while disagreeing on a field name or type. The contract makes the shared assumption explicit.