generate-tests

Solid

Generate unit tests for a .NET service following the coverage-kit conventions. Use when the user asks to 'generate tests', 'backfill tests', 'characterize this service', or 'add tests for' a target after coverage-init has run. Operates in characterization mode (freeze current behavior for existing code) or spec mode (assert intended behavior for new/changed code), enforces the run-capture-fill loop, routes untestable units to the manifest cannot-test log, can fan the backfill out across a user-chosen number of parallel agents for large worklists (asking first, since more agents cost more tokens), and runs a single read-only suite critique before the baseline locks in (auditing cannot-test legitimacy, assertion/C1 depth, systematic gaps, and any frozen defect missing from the manifest latent_bugs backlog, never the C0/C1 numbers themselves).

Testing & QA 18 stars 1 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 79/100

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

Skill Content

# generate-tests Generates tests under the base rules and this repo's overlay + manifest. Read all three before generating: - `${CLAUDE_PLUGIN_ROOT}/rules/unit-testing.base.md` - `.claude/coverage/refs/unit-testing.md` (repo overlay) - `.claude/coverage/refs/coverage-manifest.yml` (categories, exclusions, gate) ## Preflight: is this repo on the current kit? Run this before building the worklist, every time, whether or not anyone mentioned an upgrade: ``` python .claude/coverage/tools/coverage-gate.py \ --manifest .claude/coverage/refs/coverage-manifest.yml --print-kit-drift ``` Any state other than `current` means the repo has not been reconciled against today's rules, and a backfill is the worst moment to discover that: a pass run on superseded mechanics wastes every token it spends. Consult `${CLAUDE_PLUGIN_ROOT}/MIGRATIONS.md` ("Preflight") and split what you find: - **`auto` entries governing how THIS pass runs** (refresh the `.claude/coverage/tools/` copies, the fan-out contract, frozen-bug recording): apply them now, silently, and note them in the closing summary. - **`sign-off` entries** (anything that moves scope, the denominator, or the floor): report them in one line and leave them alone. Re-scoping mid-backfill moves the worklist under your own feet. `coverage-redo` is what applies them; say so and carry on with the pass as scoped today. If the state is `current`, say nothing and continue. ## Build the full worklist first — then cover ALL of it (d...

Details

Author
livlign
Repository
livlign/claude-skills
Created
4 months ago
Last Updated
2 weeks ago
Language
HTML
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category