What problem does it solve?
This Skill unit helps identify gaps in test coverage, validate the shape of the test pyramid, and ensure adherence to TDD discipline, providing a comprehensive audit of test quality.
Core Features & Use Cases
- Test Strategy Audit: Utilizes Test Pyramid, FIRST principles, and coverage analysis to ensure a robust testing framework.
- Test Coverage Analysis: Checks for statement, branch, function, and line coverage, reporting files and modules below threshold.
- Test Pyramid Shape Validation: Verifies the pyramid's unit, integration, and E2E test ratios, flagging inverted pyramids.
- FIRST Principles Audit: Reviews test files against principles of Fast, Independent, Repeatable, Self-validating, and Timely execution.
- Missing Test Detection: Identifies modules without test coverage, including public exported functions.
- Test Quality Check: Reviews test files for structure, mocks, naming conventions, and no test pollution.
- Edge Case Coverage: Ensures happy paths, error paths, boundary conditions, and async error handling are covered.
- Test Report Compilation: Outputs a detailed report including suite, coverage, pyramid, FIRST score, gaps, and quality grade.
Quick Start
Run the graph-tests skill to audit your project's test quality, ensuring a robust test suite and adherence to best practices.