What problem does it solve?
Provides clear, actionable testing practices and patterns to reduce regressions, catch bugs earlier, and make codebases more maintainable by improving test quality across unit, integration, and end-to-end layers.
Core Features & Use Cases
- Test Pyramid Guidance: Recommendations for unit, integration, and E2E test balance and prioritization.
- Unit Testing Best Practices: AAA pattern, single-responsibility tests, naming guidance, and factory/builders for test data.
- Integration & E2E Patterns: Fixtures, DB session management, API endpoint tests, stable selectors, and CI-friendly cleanup.
- Mocking & Stubbing Strategies: When to mock, spy patterns, avoiding over-mocking, and examples for Moq, pytest-mock, and Jest.
- Coverage & CI Targets: Suggested coverage thresholds, anti-patterns to avoid, and running tests with coverage reporting.
- Framework Examples: Ready guidance and templates for .NET (xUnit/NUnit), pytest, and Jest with practical snippets and test base patterns.
Quick Start
Ask the testing skill to audit your repository, identify gaps in unit/integration/E2E coverage, and provide prioritized test cases and implementation guidance.