Skip to content
Latchkey

What Is a Contract Test Consumer?

A contract test consumer is the component in consumer-driven contract testing that defines what it needs from a service. By running against a mock, it captures the requests it sends and the responses it relies on into a contract artifact. That contract then becomes the specification the provider must satisfy.

Why it matters

Letting the consumer state its real expectations keeps a service honest about what its clients actually depend on. The recorded contract is what the provider side later replays to verify compatibility.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →