API Contract Testing

•
1
•

Implements consumer-driven API contract testing with Pact-JS and automated CI/CD deployment gates.

Accelerate multi-service deployments and eliminate brittle integration environments with consumer-driven contract testing. This skill guides the setup and execution of Pact-JS (v16), Pact Broker integration, broker-driven provider verification, and automated can-i-deploy CI/CD quality gates. Whether applying consumer-first testing, schema-first validation with OpenAPI and Schemathesis, or message-based event contracts, it ensures microservices and distributed APIs remain strictly compatible before shipping to production.

主な機能

01Consumer-driven contract test creation using modern Pact-JS v16 matchers
02Automated provider verification with state handlers and pending pacts support
031 GitHub stars
04Deployment gating via can-i-deploy matrix validation to block breaking changes
05Pact Broker orchestration with Docker Compose configuration and webhooks
06Hybrid schema-first validation support using OpenAPI, Ajv, and Schemathesis

ユースケース

01Establishing reliable CI/CD deployment gates to ensure cross-service compatibility
02Preventing breaking API changes between frontend clients and backend microservices
03Verifying asynchronous message contracts for event-driven systems like Kafka or SQS