audit-tests
Audit test suite health, coverage gaps, and TDD compliance
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Audit test suite health, coverage gaps, and TDD compliance
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | audit-tests |
| description | Audit test suite health, coverage gaps, and TDD compliance |
| user_invocable | true |
Audit the test suites across Rust and Frontend, check for production unwrap()
calls, verify test selector conventions, and assess TDD commit ordering.
Run cargo test --workspace and parse the output:
Run pnpm test and parse the output:
Search the following crate source directories for .unwrap() calls:
crates/grove-domain/src/**/*.rscrates/grove-api/src/**/*.rscrates/grove-tauri/src/**/*.rsExclude from findings:
#[cfg(test)] modulestests/ directories_test.rsEach remaining .unwrap() is a finding — production code should use ?,
.expect("reason"), or proper error handling.
Sample components in src/features/**/*.tsx (exclude test files). Check whether
interactive elements (buttons, inputs, links, forms) include data-testid
attributes for Testing Library selectors.
Report components that lack data-testid on interactive elements.
Run git log --oneline -20 and perform heuristic analysis:
test: commits followed by feat: or fix: commits (good TDD)feat: or fix: commits without preceding or accompanying test
commits (potential test-after pattern)=== TEST SUITE AUDIT ===
Summary
| Suite | Status | Tests | Passed | Failed | Skipped/Ignored |
|-------------|--------|-------|--------|--------|-----------------|
| Rust | PASS | 18 | 18 | 0 | 0 |
| Frontend | PASS | 42 | 42 | 0 | 0 |
Coverage
| Check | Status | Count | Details |
|--------------------|--------|-------|--------------------------|
| Production unwrap | PASS | 0 | No unwrap in prod code |
| Test selectors | WARN | 3 | 3 components lack testid |
| TDD ordering | INFO | — | 60% test-first pattern |
Findings
| Severity | Check | Location | Issue |
|----------|-----------------|---------------------------------|--------------------|
| HIGH | Prod unwrap | crates/grove-api/src/routes.rs:42 | .unwrap() in handler |
| MEDIUM | Test selectors | src/features/Home/Panel.tsx | No data-testid |
=== RESULT: PASS/FAIL ===
Scaffold a REST API endpoint with hexagonal layers and integration tests
Scaffold a React component with Vitest tests (TDD-first)
Scaffold a new Shell extension with hexagonal layers and TDD
Add a sub-feature within an existing Shell extension
Scaffold a SQL migration with RLS policy, rollback plan, and test seed data
Scaffold a Tauri IPC command with full round-trip (Rust handler, TS types, React hook, tests)