Pact
A widely used open-source tool for consumer-driven contract testing between services.
In more detail
The consumer's tests run against a Pact mock server and produce a pact file of interactions; the provider's build replays that file against the real provider. It supports many languages, including Python, Java and JavaScript.
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.
- 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.
Taught in
- Contract Testing Between Services — Automated Testing, TDD & Quality Engineering