api-testing
Installation
SKILL.md
Discovery Questions
- REST, GraphQL, or both? REST-only suites use standard HTTP assertions. GraphQL needs query/mutation builders.
- Auth mechanism? JWT, API key, OAuth 2.0, or session cookies -- each needs a different fixture strategy.
- OpenAPI/Swagger spec available? If yes, auto-generate schemas as contracts.
- Check
.agents/qa-project-context.mdfirst. Respect existing conventions.
Core Principles
- Test contracts, not implementations. Assert on response shape, status codes, and headers -- not on internal logic or database state.
- Schema validation catches drift before it breaks consumers. A failing schema test means you caught a breaking change before your frontend did.
- Auth flows are tests too -- don't just hardcode tokens. Test login, refresh, expiration, and permission boundaries.
- Response time is a testable assertion. Performance regressions caught in CI are cheaper than production incidents.
Related skills