fix-tests

Solid

Batch repair of systematic test quality issues. Detects anti-patterns across the test suite, then fixes one pattern at a time with production context. Modes: --triage (scan all patterns, report counts), --pattern [ID] [path] (fix specific pattern), --dry-run (preview changes), --bundle-gates (fix pattern plus adjacent quality gaps).

Code & Development 6 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
28
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# zuvo:fix-tests — Batch Test Repair Fixes systematic test quality problems in batches. Targets one anti-pattern at a time, reads production context for each affected file, rewrites the broken assertions, and verifies the fixes pass. **Scope:** Post-generation test suites where the same anti-pattern appears across many files. One pattern per run, applied surgically to every matching file. **Out of scope:** Writing tests from scratch (use `zuvo:write-tests`), auditing test quality without fixing (use `zuvo:test-audit`), general code review (use `zuvo:review`). ## Argument Parsing Parse `$ARGUMENTS` for mode, pattern ID, and scope: | Argument | Behavior | |----------|----------| | _(empty)_ or `--triage` | Scan all known anti-patterns, report counts, ask which to fix | | `--pattern [ID]` | Fix the specified pattern across all matching test files | | `--pattern [ID] [path]` | Fix the pattern, scoped to the given directory | | `--dry-run` | Show triage counts and affected files, do not modify anything | | `--bundle-gates` | When fixing a pattern, also apply adjacent quality gates (Q7 error tests, Q12 symmetry) | Default with no arguments: `--triage`. ### Supported Patterns | ID | Name | What it fixes | |----|------|---------------| | P-41 | Loading-only assertions | Tests that only check `state.loading` instead of verifying payload and state fields | | P-40 | Wrong initial state | Tests using incorrect initialState shape, missing fields or wrong defaults | | P-43 | getByT...

Details

Author
greglas75
Repository
greglas75/zuvo
Created
4 months ago
Last Updated
today
Language
Shell
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category