What problem does it solve?
Testing practices across teams can be inconsistent, leading to flaky tests, slow feedback, and duplicated effort. This Skill provides structured patterns, mock guidelines, and test organization conventions to streamline and improve reliability.
Core Features & Use Cases
- Structured test patterns: Clear placement and naming for unit and integration tests across apps and packages.
- Mock setup guidelines: Recommended order and approach for mocking dependencies before imports to ensure deterministic tests.
- Harness and integration patterns: Reusable test harness examples and integration test patterns to speed up QA and regression testing.
- Consistent organization: Standardized directories for tests to improve discoverability and collaboration.
Quick Start
Apply the test patterns to a new module or an existing one by placing unit tests in tests/ beside the implementation and integration tests under tests/integration/. Use the mock-before-import strategy shown in the examples to bootstrap tests quickly.