pact-contract-testing-configuration
Pact Contract Testing Configuration
Purpose
Integration bugs between independently-deployed services are usually caught either too late (a full end-to-end environment, slow and flaky) or not until production (no integration testing at all beyond unit tests with mocked assumptions that silently drift from reality). Consumer-driven contract testing with Pact closes that gap without a full integration environment: the consumer of an API defines, as an executable test, the exact interactions it depends on; that expectation is captured as a "pact" file and published to a shared broker; the provider then verifies, in its own CI, that it actually satisfies every consumer's published expectations. This skill covers writing the consumer and provider tests and standing up the broker that connects them — using those contracts to gate deploys is covered separately in pact-configuration-validation.