Agent skill · software engineering · aiskillstore

designing-tests

Designs and implements testing strategies for any codebase. Use when adding tests, improving coverage, setting up testing infrastructure, debugging test failures, or when asked about unit tests, integration tests, or E2E testing.

Why this skill is useful

Provides specific test implementation templates and framework recommendations that the AI wouldn't reliably generate on its own.

What it needs

Requires cypress, httpx, jest, playwright, pytest, requests, selenium, testify, vitest installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Designing Tests Test Implementation Workflow Copy this checklist and track progress: Testing Pyramid Apply the testing pyramid for balanced coverage: Framework Selection JavaScript/TypeScript Type Recommended Alternative ------ ------------- ------------- Unit Vitest Jest Integration Vitest + MSW Jest + SuperTest E2E Playwright Cypress Component Testing Library Enzyme Python Type Recommended Alternative ------ ------------- ------------- Unit pytest unittest Integration pytest + httpx pytest + requests E2E Playwright Selenium API pytest + FastAPI TestClient - Go Type Recommended ------ ------------- Unit testing + testify Integration testing + httptest E2E testing + chromedp Test Structure Templates Unit Test Integration Test E2E Test Coverage Strategy What to Cover ✅ Business logic (100%) ✅ Edge cases and error handling (90%+) ✅ API contracts (100%) ✅ Critical user paths (E2E) ⚠️ UI components (snapshot + interaction) ❌ Third-party library internals ❌ Simple getters/setters Coverage Thresholds Test Data Management Factories/Builders Fixtures Mocking Strategy When to Mock ✅ External APIs and services ✅ Database in unit tests ✅ Time/Date for determinism ✅ Random values ❌ Internal modules (usually) ❌ The code under test Mock Examples Test Validation Loop After writing tests, run this validation: If any tests fail, fix them before proceeding. If coverage is below target, add more tests for uncovered code paths.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/designing-tests

View the source on GitHub

Browse the @skills marketplace