api-test-suite-builder

Featured

Use when the user asks to generate API tests, create integration test suites, test REST endpoints, or build contract tests.

AI & Automation 25,834 stars 3639 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# API Test Suite Builder **Tier:** POWERFUL **Category:** Engineering **Domain:** Testing / API Quality --- ## Overview Scans API route definitions across frameworks (Next.js App Router, Express, FastAPI, Django REST) and auto-generates comprehensive test suites covering auth, input validation, error codes, pagination, file uploads, and rate limiting. Outputs ready-to-run test files for Vitest+Supertest (Node) or Pytest+httpx (Python). --- ## Core Capabilities - **Route detection** — scan source files to extract all API endpoints - **Auth coverage** — valid/invalid/expired tokens, missing auth header - **Input validation** — missing fields, wrong types, boundary values, injection attempts - **Error code matrix** — 400/401/403/404/422/500 for each route - **Pagination** — first/last/empty/oversized pages - **File uploads** — valid, oversized, wrong MIME type, empty - **Rate limiting** — burst detection, per-user vs global limits --- ## When to Use - New API added — generate test scaffold before writing implementation (TDD) - Legacy API with no tests — scan and generate baseline coverage - API contract review — verify existing tests match current route definitions - Pre-release regression check — ensure all routes have at least smoke tests - Security audit prep — generate adversarial input tests --- ## Route Detection ### Next.js App Router ```bash # Find all route handlers find ./app/api -name "route.ts" -o -name "route.js" | sort # Extract HTTP methods from each...

Details

Author
alirezarezvani
Repository
alirezarezvani/claude-skills
Created
10 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

api-test-generate

Auto-generate comprehensive API tests for REST and GraphQL endpoints with request/response validation

1 Updated 2 weeks ago
manastalukdar
API & Backend Solid

rest-api-test-generator

Generates REST API tests using RestAssured or MockMvc with loop prevention and incremental validation. Triggers on: "test API endpoints", "generate API tests", "test REST API", "create integration tests".

10 Updated yesterday
timwukp
API & Backend Listed

api-test-author

Designs and writes API/contract automated tests for endpoints or a service (REST/GraphQL/gRPC), then actually runs them and fixes them until the run is green. First it detects which API-testing stack the repository already uses (pytest+httpx/requests / newman-Postman / REST-assured / supertest / k6 for smoke — from pyproject/package.json/pom/dependencies/existing tests/CI) and writes in that stack's conventions rather than imposing a new one. For each endpoint it covers the positive path (valid request → 2xx + correct body), negative (invalid body/types/missing fields → 4xx), boundaries (limits, pagination, empty lists, large payload), authorization (no token/another's token/another's role → 401/403, IDOR), idempotency of a repeated POST/PUT, status codes and headers, contract/schema validation of the response against the OpenAPI/Swagger/GraphQL schema, server error handling and rate limiting. Use when asked to "write api tests", "cover the endpoints with tests", "contract tests from openapi/swagger", "tests

1 Updated 1 weeks ago
smirnovalex-qa