Go from zero tests to comprehensive coverage in one session. This workflow combines three plugins to analyze your codebase, generate meaningful tests, audit quality, and document everything for your team.
Start by scanning your project to understand what’s already tested and where the gaps are. The test-generator plugin maps your entire codebase, identifies untested functions, and highlights critical paths that need coverage first.
Based on the analysis, generate comprehensive test suites. This creates unit tests, integration tests, and edge case tests targeting the gaps identified in step 1. Tests follow your project’s existing conventions automatically.
Don’t just generate tests, make sure they’re actually good. The code-auditor runs parallel agents to review test correctness, catch flawed assertions, flag brittle patterns, and analyze coverage gaps.
Wrap up by generating team-ready documentation. Creates a testing guide with coverage metrics, explains testing strategy decisions, and produces reports your team can reference and maintain going forward.
Run /test-analyze --deep first to understand your baseline. The deep flag examines runtime paths and dependency chains, not just static analysis. This gives the generator much better context.
For large codebases, scope the generation to one module at a time. Running --target src/auth/ then reviewing before moving on produces better results than trying to test everything at once.
The audit step is crucial, skip it at your own risk. Generated tests that look correct can have subtle issues like testing implementation details instead of behavior, which creates maintenance nightmares.