- Home
- Skills
- Jeremylongshore
- Claude Code Plugins Plus Skills
- Automating Api Testing
automating-api-testing_skill
- Python
1.4k
GitHub Stars
1
Bundled Files
3 weeks ago
Catalog Refreshed
2 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstart where the catalogue uses aiagentskills.
npx veilstart add skill jeremylongshore/claude-code-plugins-plus-skills --skill automating-api-testing- SKILL.md5.4 KB
Overview
This skill automates API endpoint testing for REST and GraphQL services, producing test suites, contract validation, and performance metrics. It generates request payloads, validates responses against OpenAPI/GraphQL schemas, and produces structured reports for CI use. Use it to ensure endpoint reliability, specification compliance, and comprehensive test coverage.
How this skill works
The skill inspects API definitions (OpenAPI/Swagger or GraphQL schema) and the running base URL to discover endpoints, methods, parameters, and authentication requirements. It generates CRUD, auth, edge-case, contract, and performance tests, executes them via a chosen test runner, and validates responses against JSON Schema/OpenAPI or GraphQL types. Results are saved as test artifacts and reports including coverage, failed request/response payloads, and performance benchmarks.
When to use it
- Validating OpenAPI/Swagger or GraphQL schema compliance
- Automating API contract tests before releases or in CI pipelines
- Generating broad coverage tests for new or refactored endpoints
- Testing authentication flows and token lifecycle behavior
- Detecting regressions after backend changes
Best practices
- Run tests against non-production environments to avoid corrupting live data
- Keep API specs and generated tests version-controlled alongside code
- Use test data factories and clean up state between test runs for isolation
- Target critical paths for 100% coverage and add edge-case/error condition tests
- Integrate tests into CI with thresholds for failure, latency, and contract violations
Example use cases
- Generate Jest/Supertest suites from an OpenAPI file to validate user and product endpoints
- Run contract tests that compare API responses to the OpenAPI schema and report diffs for breaking changes
- Automate authentication tests covering login, token refresh, and expired-token behavior
- Execute performance smoke tests for critical endpoints and include p95/p99 latency in reports
- Produce a CI-ready test report with per-endpoint coverage and failed-request payloads for debugging
FAQ
Provide an API definition (OpenAPI/GraphQL), the service base URL, and any auth credentials or API keys. A test runner and network access to the target environment are also required.
How does contract validation work?
Responses are validated against OpenAPI/JSON Schema or GraphQL type definitions using JSON Schema validators and OpenAPI schema validators. Mismatches are reported with diffs and endpoint details.
Can I run these tests in CI?
Yes. Generated test suites and reports are designed for CI integration. Failures, coverage metrics, and performance thresholds can be used to gate deployments.