liveBook · Manning

Consumer-side contract test

As explained in Microservices Patterns, Second Edition

A contract test that verifies a service client can communicate correctly with the service.

A consumer-side contract test checks whether a service client can communicate with the service. It supports testing services in isolation while avoiding complex, slow, brittle end-to-end tests. section 7.6.2

Related service-testing patterns check different aspects:

  • Consumer-driven contract tests verify that a service meets its clients’ expectations. section 7.6.2
  • Service component tests test a service in isolation. section 7.6.2

How Microservices Patterns, Second Edition covers it

How deep it goes
Defines the verification goal but leaves implementation details unspecified.
What you can do after
Evaluate whether a service client can communicate with the service.
How it connects
Relates to consumer-driven contract testing, service component testing, and end-to-end testing.

This explainer was generated by Manning's knowledge graph from the text of Microservices Patterns, Second Edition. The section links point to the parts of the book it draws on.