api-test-suite-builder

Generates API test suites covering auth, validation, pagination, uploads, and rate limiting.

2|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/BryanPinheiro77/FinanceBot-BackEnd --skill api-test-suite-builder-bryanpinheiro77
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: api-test-suite-builder
Source: https://github.com/BryanPinheiro77/FinanceBot-BackEnd/tree/main/.agents/skills/api-test-suite-builder
Command: npx skills add https://github.com/BryanPinheiro77/FinanceBot-BackEnd --skill api-test-suite-builder-bryanpinheiro77

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing comprehensive API tests by hand is slow and error-prone, and most teams only cover happy paths while missing auth failures, boundary values, and adversarial inputs. This Skill scans your API route definitions and generates ready-to-run test suites that systematically cover the error paths where most bugs live. ## Core Features & Use Cases - Route Detection: Scans Next.js App Router, Express, FastAPI, and Django REST Framework codebases to extract every endpoint and HTTP method. - Test Matrix Generation: Produces auth tests (missing/invalid/expired tokens, wrong roles), input validation tests (missing fields, wrong types, boundaries, injection), pagination tests, file upload tests, and rate limiting tests. - Framework-Specific Output: Generates Vitest+Supertest files for Node.js or Pytest+httpx files for Python, with descriptive test names and fixture-based test data. - Use Case: You inherit a legacy Express API with zero test coverage. Run this Skill to scan all routes and generate a baseline test suite covering auth, validation, and error codes for every endpoint before your next release. ## Quick Start Scan my API routes and generate a complete test suite covering authentication, input validation, and error codes for every endpoint.

Frequently Asked Questions about api-test-suite-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate API integration tests automatically?▼

Scan your route definitions to extract every endpoint and HTTP method, then generate test files per route group covering auth, validation, and error codes. This Skill produces Vitest+Supertest files for Node.js or Pytest+httpx files for Python.

What test cases should every API endpoint have?▼

Every authenticated endpoint needs tests for missing headers, invalid tokens, expired tokens, and wrong roles. POST/PUT/PATCH endpoints additionally need empty body, missing fields, wrong types, boundary values, and injection attempt tests.

Does this work with FastAPI and Express routes?▼

Yes, route detection supports FastAPI decorators, Express router methods, Next.js App Router route handlers, and Django REST Framework urlpatterns. Detection uses grep-based scanning to extract paths and HTTP methods from source files.

How do I test API rate limiting?▼

Send burst requests exceeding the expected limit and assert a 429 status appears, then verify the response includes a Retry-After header. Run rate limit tests last since they can interfere with other suites when executed in parallel.

Why do API tests fail when run in parallel?▼

Failures usually come from shared state between tests or rate limit tests interfering with other suites. Clean up test data in afterAll hooks, use factories instead of hardcoded IDs, and isolate rate limiting tests.