consumer and provider
The two sides of a contract test: the consumer calls an API and states what it needs, the provider serves it and verifies it keeps the promise.
In more detail
Consumer tests describe requests and promised responses; provider verification replays them against the real provider. Keeping each contract small, one endpoint and one consumer at a time, makes it easy to evolve.
Related terms
- contract testing — Testing that an API’s real behaviour matches its written contract, and that its callers only rely on what the contract promises.
- API contract — The written promise an API makes about its operations, inputs, outputs and errors, which callers rely on while the code behind it changes.
Taught in
- Contract Testing Between Services — Automated Testing, TDD & Quality Engineering