
Api Testing Patterns
This is the pattern library you reach for when building API tests that actually prevent breaking changes in production. It covers consumer-driven contract testing with Pact, comprehensive REST and GraphQL validation, and the critical scenarios teams often miss: expired tokens, race conditions on shared resources, idempotency key handling. The quick reference table breaking down contract versus component versus integration testing is genuinely useful for figuring out what layer you should be testing at. Four coordinated agents will validate contracts against OpenAPI specs, generate test suites, run load tests, and scan for security issues. The code examples are production-ready, especially the concurrency test that verifies inventory doesn't oversell when hit with parallel requests.
- skills.sh installs
- 609
- GitHub stars
- 524
- last updated
- Aug 21, 2026
Install
$ npx -y skills add proffesor-for-testing/agentic-qe --skill api-testing-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
API Testing Patterns
<default_to_action> When testing APIs or designing API test strategy:
- IDENTIFY testing level: contract, integration, or component
- TEST the contract, not implementation (consumer perspective)
- VALIDATE auth, input, errors, idempotency, concurrency
- AUTOMATE in CI/CD with schema validation
- MONITOR production APIs for contract drift
Quick Pattern Selection:
- Microservices → Consumer-driven contracts (Pact)
- REST APIs → CRUD + pagination + filtering tests
- GraphQL → Query validation + complexity limits
- External deps → Mock with component testing
- Performance → Load test critical endpoints
Critical Success Factors:
- APIs are contracts - test from consumer perspective
- Always test error scenarios, not just happy paths
- Version your API tests to prevent breaking changes </default_to_action>
Quick Reference Card
When to Use
- Testing REST or GraphQL APIs
- Validating microservice contracts
- Designing API test strategies
- Preventing breaking API changes
Sponsors
Details
- Repository
- github.com/proffesor-for-testing/agentic-qe
- Categories
- Backend & APIs, Testing & QA, AI & Agent Building
- First seen
- Jun 3, 2026