Api testing

From rnavarych/alpha-engineer · View interactive version

Api testing is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. API test automation with Postman/Newman, REST Assured, SuperTest, and httpx. Contract testing (Pact, consumer-driven), schema validation (JSON Schema, OpenAPI), mock servers (WireMock, MSW), API performance baselines, and auth token management. Use when testing REST/GraphQL APIs or setting up API te

How to use this skill

Skill file

API Testing

When to use

Core principles

  1. Test the contract, not the implementation — verify what the API returns, not how it produces it
  2. Every status code is a scenario — 200 is one test; 400, 401, 403, 404, 429 are five more
  3. Mock at the network boundary — WireMock/MSW intercept at the wire; never mock internal service methods
  4. Tokens come from helpers, never fixtures — hardcoded tokens in test files are a security incident waiting to happen
  5. Performance baselines belong in CI — if P95 regresses >20%, it's a bug, not a metric

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.