Skip to content
Testing·Intermediate·Conceptual·1 min read

What is contract testing useful for?

Short interview answer

It verifies that producer and consumer assumptions about request and response shapes remain compatible without requiring every system in one end-to-end environment. Runtime schema validation still protects the application from malformed external data.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Testing strategy

Related questions