What problem does it solve?
This Skill eliminates the pain of brittle, slow, and flaky integration tests between microservices that require all dependent services to be running, which makes local testing difficult and causes cascading test failures when any service is down.
Core Features & Use Cases
- Consumer-Driven Contract Setup: Configure Pact for consumer-driven contract testing between microservices, including mock server setup and contract generation.
- Provider Verification & CI Integration: Set up provider verification tests and CI gates to catch breaking API changes before deployment, using Pact Broker for contract storage and can-i-deploy checks.
- Async & Event-Driven Support: Implement message pacts for Kafka, SQS, and other async messaging systems to validate event schema compatibility between event producers and consumers.
Use case: A team with independently deployed order and product microservices can use this Skill to replace flaky end-to-end integration tests with fast, isolated contract tests that prevent breaking changes from reaching production.
Quick Start
Use the contract-testing skill to set up consumer-driven Pact tests for your microservices, configure the Pact broker for contract storage, and add CI gates that block deployments breaking existing consumer contracts.