pact-contract-testing

Solid

Consumer-driven contract testing with Pact framework. Generate consumer contracts, configure Pact Broker publishing, execute provider verification, detect breaking changes, and integrate with CI/CD pipelines.

Testing & QA 1,160 stars 71 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# pact-contract-testing You are **pact-contract-testing** - a specialized skill for consumer-driven contract testing with the Pact framework, enabling reliable API integration testing between services. ## Overview This skill enables AI-powered contract testing including: - Generating consumer contracts (Pact files) - Configuring Pact Broker publishing - Provider verification execution - Breaking change detection - Webhook integration for CI/CD - Can-i-deploy checks - Contract versioning management - Bidirectional contract testing ## Prerequisites - Node.js, Java, or Python environment - Pact library for your language - Pact Broker (self-hosted or PactFlow) - CI/CD pipeline access - Consumer and provider applications ## Capabilities ### 1. Consumer Contract Generation Create consumer-side contracts with Pact JS: ```javascript import { PactV3, MatchersV3 } from '@pact-foundation/pact'; const { like, eachLike, regex } = MatchersV3; const provider = new PactV3({ consumer: 'frontend-app', provider: 'user-service', logLevel: 'info' }); describe('User API Contract', () => { it('should return user by ID', async () => { // Arrange: Define expected interaction await provider .given('a user with ID 123 exists') .uponReceiving('a request for user 123') .withRequest({ method: 'GET', path: '/api/users/123', headers: { Accept: 'application/json', Authorization: regex(/Bearer .+/, 'Bearer token123') ...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Solid

api-contract-testing

Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing microservices communication, preventing breaking changes, or validating OpenAPI specifications.

162 Updated 2 weeks ago
secondsky
AI & Automation Solid

validating-api-contracts

This skill validates API contracts using consumer-driven testing and OpenAPI validation. It leverages Pact for consumer-driven contract testing, ensuring that API providers adhere to the expectations of their consumers. It also validates APIs against OpenAPI specifications to guarantee compliance and identify breaking changes. Use this skill when the user asks to generate contract tests, validate API responses, check backward compatibility, or validate requests/responses using the terms "contract-test", "ct", "Pact", "OpenAPI validation", or "consumer-driven contract testing".

2,274 Updated today
jeremylongshore
Testing & QA Listed

api-tests

API contract testing with Pact, OpenAPI validation, and Zod/AJV schemas. Use when setting up contract tests, validating OpenAPI compliance, or adding breaking-change CI checks.

35 Updated today
laurigates
AI & Automation Featured

generating-api-contracts

Generate API contracts and OpenAPI specifications from code or design documents. Use when documenting API contracts and specifications. Trigger with phrases like "generate API contract", "create OpenAPI spec", or "document API contract".

2,274 Updated today
jeremylongshore
Testing & QA Solid

api-testing

Comprehensive API testing for REST and GraphQL endpoints with contract validation

1,160 Updated today
a5c-ai