DevOps & Tooling / Knowledge library
Contract Testing
Verifies that service consumers and providers agree on interface behavior
Why learn Contract Testing?
It detects breaking integration changes without a full shared environment
The problem it solves
It keeps independently deployed services compatible
Where it came from
Contract Testing is a software testing technique that verifies that service consumers and providers agree on interface behavior. Its guarantees and tradeoffs depend on the concrete implementation and operating context.
Build your understanding
Work through these exercises in order. Try the task before opening a reference.
- Define Contract Testing and distinguish it from a neighboring concept.
- Choose a realistic task where Contract Testing is appropriate.
- Identify a failure mode caused by misusing Contract Testing.
- Interpret a small design or result involving Contract Testing.
- Explain one tradeoff or limitation of Contract Testing.
Documentation and sources
- ISTQB Glossary (glossary.istqb.org)