Contract Testing for Public APIs and Types

#184 - Contract Testing Essentials: A Comprehensive Guide - Lewis Prescott

Topic 4 of 9

Published Jul 22, 2024 · Clip 21:46–25:55 (4:09)

Lewis explains that consumer-driven contract testing doesn't fit public/third-party APIs because consumers drive the contracts and you can't accept an endless backlog of consumer demands. He introduces the main types: consumer-driven contract testing, and provider-driven (also known as bi-directional) contract testing, which suits public APIs—the provider verifies its OpenAPI specification against its own tests and publishes results to the broker, with bi-directional verification available via PactFlow, the SaaS version of Pact.