A Claude Code plugin that finds untested code paths and generates targeted unit tests by analyzing coverage gaps and control flow.
claude plugin install /Users/mehmet.turac/Documents/minitools/ideasmimo/test-scout| Command | Description |
|---|---|
/test-scout |
Find coverage gaps across the whole project |
/test-scout-gaps [path] |
Show untested files and functions for a path |
/test-scout-generate [file] |
Generate test stubs for a specific file |
/test-scout-mutate [file] |
Run mutation check to verify tests catch real bugs |
/test-scout
Detected framework: Vitest
=== Completely Untested Files ===
| File | Exports | Complexity | Priority |
|------|---------|------------|----------|
| src/billing/invoice.ts | generateInvoice, formatCurrency, applyDiscount | 18 | HIGH |
| src/utils/crypto.ts | hashPassword, compareHash | 11 | HIGH |
| src/lib/queue.ts | QueueManager | 6 | MEDIUM |
=== Tested Files with Uncovered Exports ===
| Source File | Test File | Uncovered Exports |
|-------------|-----------|-------------------|
| src/services/auth.ts | src/services/auth.test.ts | validateToken, refreshSession |
| src/utils/validators.ts | src/utils/validators.test.ts | sanitizeInput |
=== Priority Action Items (complexity > 3) ===
| Function | File | Complexity | Branches |
|----------|------|------------|---------|
| generateInvoice | src/billing/invoice.ts | 18 | 5 if/else, 2 loops, 3 try/catch |
| hashPassword | src/utils/crypto.ts | 11 | 4 if/else, 2 ternary, 1 catch |
| validateToken | src/services/auth.ts | 9 | 3 if/else, 2 &&, 1 catch |
| refreshSession | src/services/auth.ts | 7 | 3 if/else, 1 ternary |
Summary: 12 source files scanned, 3 with no tests, 2 with partial coverage, 4 high-complexity gaps.
- Vitest
- Jest
- Pytest
- Mocha
- TypeScript / JavaScript (.ts, .tsx, .js, .jsx, .mjs)
- Python (.py)