What problem does it solve?
Prevent regressions and reduce production bugs by providing clear, repeatable guidance for writing unit, integration, and end-to-end tests that validate business logic and system interactions.
Core Features & Use Cases
- Structured Test Strategy: Guidance on the testing pyramid, percentages for unit/integration/E2E tests, and organization of test suites.
- Async and Mocking Patterns: Patterns for async testing, HTTP mocking, transaction handling, and concurrency to keep tests deterministic.
- Test Data and Fixtures: Recommendations for constants, factory functions, fixtures, and cleanup strategies to produce reliable test data.
- CI and Coverage Guidance: Coverage targets, commands for running tests and generating reports, and best practices for integrating tests into CI pipelines.
Quick Start
Use the testing-code skill to generate unit, integration, and end-to-end tests with fixtures and mocks for a new feature that processes audio uploads.