QE Contract Testing

Automate API contract testing with Pact, OpenAPI, and GraphQL schema validation.

2|2|Updated Aug 23, 2025
One-click install
npx skills add https://github.com/summarybotng/summarybot-ng --skill qe-contract-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: QE Contract Testing
Source: https://github.com/summarybotng/summarybot-ng/tree/main/.claude/skills/qe-contract-testing
Command: npx skills add https://github.com/summarybotng/summarybot-ng --skill qe-contract-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures the reliability and compatibility of APIs by performing rigorous contract testing, schema validation, and breaking change detection across various API types.

Core Features & Use Cases

  • Consumer-Driven Contracts: Verifies API implementations against consumer expectations using Pact.
  • Schema Validation: Validates API requests and responses against OpenAPI or other schemas.
  • Breaking Change Detection: Identifies backward and forward compatibility issues between API versions.
  • GraphQL & Event Testing: Extends contract testing to GraphQL schemas and event-driven systems.
  • Use Case: A team can use this Skill to automatically verify that their new API release does not break existing client applications, ensuring smooth deployments and preventing runtime errors.

Quick Start

Use the qe-contract-testing skill to verify the provider at http://localhost:3000 against the contracts located in the contracts/ directory.

Frequently Asked Questions about QE Contract Testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect breaking changes in an API release?

API breaking change detection identifies backward and forward compatibility issues between API versions to prevent new releases from breaking existing clients. This process compares schema versions to ensure smooth deployments and runtime reliability.

How do I verify consumer-driven contracts using Pact?

Consumer-driven contract testing with Pact verifies API implementations against consumer expectations. This ensures the provider meets the agreed interactions defined in the contract files, validating requests and responses automatically.

Can I test GraphQL schemas for breaking changes?

Yes, contract testing extends to GraphQL schemas, allowing you to validate schema changes and detect breaking changes. This ensures your GraphQL API maintains compatibility and reliability for consuming applications.

What is the best way to validate API requests against an OpenAPI schema?

Schema validation checks API requests and responses against OpenAPI definitions to ensure structural compliance. This automated validation catches structural deviations early, preventing runtime errors and ensuring API compatibility.

Does contract testing support event-driven systems?

Yes, contract testing supports event-driven systems by validating event schemas. This extends compatibility checks beyond REST and GraphQL to ensure asynchronous events maintain their expected structure and do not break consumers.

How do I automate API compatibility checks for a local provider?

Automate API compatibility by running contract testing against your local provider endpoint using contracts stored in a directory. This verifies that the implementation matches the expected consumer interactions without manual checks.