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

Taught in

References