Agent skill · software engineering · aiskillstore
api-testing
Use when writing tests for backend APIs or frontend flows. Triggers for: unit tests, integration tests, E2E tests, pytest fixtures, TestClient setup, mock data factories, or test coverage analysis. NOT for: testing business logic that doesn't involve API endpoints.
Why this skill is useful
Provides specific pytest and Playwright patterns for testing FastAPI and React/Next.js applications that the AI wouldn't generate reliably on its own.
What it needs
Requires playwright, pytest installed locally. About 7k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
API Testing Skill Expert testing for FastAPI backends and React/Next.js frontends with unit, integration, and E2E test patterns. Quick Reference Test Type Tool Purpose Scope ----------- ------ --------- ------- Unit pytest Pure functions, services Isolated Integration pytest + TestClient DB + auth + routes Combined E2E Playwright/Cypress Browser flows Full stack Project Structure Backend: Pytest Setup conftest.py (Shared Fixtures) Unit Tests (Pure Functions) Integration Tests (API Endpoints) Test Fixtures (JSON Data) Frontend: E2E Tests (Playwright) playwright.config.ts E2E Test Specification Page Object Model Test Pyramid Quality Checklist [ ] Happy path + edge cases: Test both success and error scenarios [ ] CI compatible: Tests run in CI pipeline without manual setup [ ] Deterministic: No flaky tests, no random failures [ ] Coverage: 80%+ for core modules, 90%+ for critical paths [ ] No real secrets: Use test credentials, never production keys [ ] No production DB: Use test database or in-memory SQLite [ ] Isolated: Tests don't depend on each other [ ] Fast: Unit tests < 100ms, integration < 1s Running Tests CI Configuration `yaml .github/workflows/test.yml name: Tests on: [push, pullrequest] jobs: test-backend: runs-on: ubuntu-latest steps: uses: actions/checkout@v4 uses: actions/setup-python@v5 with: python-version: "3.11" run: pip install -r requirements.txt run: pip install
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/api-testing