What problem does it solve?
The Testing skill guides teams to adopt structured testing practices (TDD, test pyramid, and pragmatic mocking) to improve reliability, speed, and maintainability of software.
Core Features & Use Cases
- TDD workflow guidance (Red-Green-Refactor): steps to write a failing test, implement minimal production code, and refactor without breaking tests.
- Test Pyramid guidance and coverage targets: recommended distribution across unit, integration, and E2E tests with practical thresholds.
- Mocking strategies and test organization: guidance on external dependencies, dependency injection, and colocated vs. integration tests.
- Quality guards: guidance on testing edge cases, error paths, and deterministic tests to avoid flakiness.
Quick Start
Start by writing a failing unit test for a new function, then implement the simplest code to make it pass, and finally refactor while keeping the full test suite green.