api-test-suite-builder

Solid

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

AI & Automation 16,392 stars 2261 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
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
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Related Skills