What problem does it solve?
Poor quality tests (e.g., vanity tests, low mock-to-assertion ratio) lead to false confidence, high maintenance, and missed bugs. This Skill systematically audits test suites to identify and fix these issues, ensuring your tests provide real value.
Core Features & Use Cases
- Automated Quality Audit: Runs a script to assess test quality, identifying non-behavioral names, excessive mocks, and poor assertion ratios.
- Prioritized Issue Fixing: Guides users through fixing high, medium, and low-priority test issues, transforming vanity tests into robust behavioral tests.
- CI/CD Integration: Provides configurations for pre-commit hooks and CI workflows to enforce test quality standards continuously.
- Use Case: Review a legacy test suite to identify and refactor tests that only assert mocks were called, turning them into meaningful behavioral validations.
Quick Start
Use the "Auditing Test Quality" skill to run a quality audit on the project's test suite and suggest improvements.