| name | testing |
| description | Create, repair, and evaluate tests for unit, integration, end-to-end, contract, regression, CI, and bug-fix workflows. Use when implementing code with meaningful risk, fixing bugs, reviewing test gaps, or investigating failing test suites. |
Testing
Workflow
- Find the existing test framework, naming style, fixtures, mocks, and scripts.
- Cover the behavior that matters, not implementation details.
- Include normal path, error path, and boundary condition when risk justifies it.
- Add regression tests for bug fixes.
- Keep mocks at system boundaries and avoid mocking the function under test.
- Run the narrowest relevant test first, then broader checks when needed.
Priorities
- Security or data integrity paths.
- User-visible behavior.
- Cross-module contracts.
- Previously broken behavior.
- Complex branching logic.
Output
Report what was tested, command used, result, and any untested risk.