integration-contract-testing
Installation
SKILL.md
Integration Contract Testing
Use this skill to prove that adapter boundaries match the contracts the application relies on.
Core Rules
- Test the boundary contract, not the vendor implementation.
- Validate both successful and failed response shapes.
- Keep fixtures realistic, minimal, and sanitized.
- Prefer schema validation at the boundary and assert that invalid vendor data is rejected.
- Use fakes for application tests and focused integration tests for adapter behavior.
- Make CI deterministic. Networked tests need explicit opt-in, stable credentials, and clear skip behavior.
Contract Test Layers
- Mapping tests: external fixture to internal type.
- Error normalization tests: vendor failure to application error.
- Adapter seam tests: adapter sends the expected command/request and handles the response.
- Optional live smoke: confirms credentials, endpoint, and one safe operation in controlled environments.