testing-patterns
Installation
SKILL.md
Testing Patterns
Automated tests are how a codebase stays safe to change. This language-agnostic skill tells you what to test, where each test belongs, and how to keep the suite fast and reliable — with worked examples in Python (pytest, Hypothesis, factory_boy, testcontainers) and JavaScript/TypeScript (Vitest, Jest, fast-check, Playwright).
Quick Reference
| Task | Reference |
|---|---|
| pytest fixtures & parametrization, factory_boy, Hypothesis, coverage.py, mutmut | python-testing.md |
| Vitest/Jest mocking, fast-check, Playwright config & selectors, testcontainers-node | js-ts-testing.md |
| CI parallelization, flaky-test triage, rerun policies, quarantine | flaky-tests-ci.md |
Test Pyramid
Many fast, isolated unit tests at the bottom; fewer slower integration tests in the middle; a handful of slow, brittle end-to-end tests at the top.