Testing interview question

What is contract testing, and when would you use it?

Definition Asked in Backend Engineer · QA Engineer / SDET · Frontend Engineer · Full Stack Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Contract testing checks that a service and its consumers agree on the API between them, without running both together. In consumer-driven contract testing (Pact), each consumer records the requests it makes and the responses it expects; the provider verifies it satisfies every contract in its own CI. It catches breaking API changes early in microservice systems.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Testing questions

← All Testing questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake