API Testing · Middle · Question 7 of 75

What can contract tests catch that unit tests on each side can't?

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.

Further reading

Problem with a question

API Testing · Middle · question 7

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz