testing-codegen

Solid

Use this skill when selecting or running Biome test fixtures, quick tests, `insta` snapshot workflows, expectation comments, orphan checks, or required code generators. Do not use for subsystem implementation design.

Testing & QA 55 stars 2 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Testing and Code Generation Choose the narrowest test that exercises the changed behavior, then broaden only when shared infrastructure or integration risk justifies it. ## Test Selection | Change | Start with | | --- | --- | | Lint rule | `just test-lintrule <ruleName>` | | One crate | `cargo test -p <crate>` or the crate's focused test target | | Parser or formatter investigation | `just qt <package>` | | CLI migration | focused `biome_cli` migration tests | | Documentation code | `just test-doc` | Use `-- --show-output` or `--nocapture` only when the test's diagnostic output is needed. Quick tests are scratch space for inspecting CST, formatter IR, or one analyzer query. Persistent behavior belongs in the subsystem's normal fixture directory before finishing. ## Snapshot Workflow Run the focused test to produce snapshots, then review every changed section: ```shell cargo insta review ``` Use `cargo insta accept` or `cargo insta reject` only after inspecting the pending changes. A passing snapshot test proves output matches the checked-in snapshot, not that the snapshot describes correct behavior. ### Orphaned Snapshots Do not delete suspected orphan snapshots manually. Deletion is safe only after running the complete workspace snapshot suite without package, target, or test filters: ```shell cargo insta test --workspace --unreferenced delete ``` For a scoped run, use `--unreferenced warn` or `--unreferenced reject`; incomplete test selection cannot prove tha...

Details

Author
modem-dev
Repository
modem-dev/ossrules
Created
1 weeks ago
Last Updated
5 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Listed

test-review

Use this skill to review test code — not what test to write, but whether a test already written is any good. Trigger on "review this test", "is this test any good", "review my test suite", "does this test actually test what it claims", "should this be a unit test instead", or when a code review (including the built-in code-review skill) touches test files and test-specific judgment is needed. Standalone — no prior audit is required, and it complements rather than replaces the built-in code-review skill by owning the test-specific half of the judgment. Primarily advisory — flags issues and proposes rewrites — but may apply an edit directly when the user explicitly authorizes it; it never edits on its own initiative.

4 Updated 2 days ago
EmanueleMinotto
Code & Development Listed

test-gen

Generate high-quality tests for existing or new code. Always use this skill when asked to write tests, add test coverage, or generate any kind of test — unit, integration, or end-to-end. Use when the user says "write tests for this", "add coverage", "test this function/class/module/endpoint", "generate unit tests", or when a PR or feature is missing test coverage. Read this skill before writing a single test case.

1 Updated 2 days ago
AllThingsSmitty
Testing & QA Listed

testcase

Generate or review test cases from requirements, specs, tickets, UI descriptions, API specs, Figma designs, or code changes, then implement the automatable ones as runnable tests in the repo's own framework. Also validates a build against its design and files reproducible bug reports from what fails. Use whenever the user asks to write, create, generate, implement, review, improve, or check test cases, to compare a screen against its Figma design, or to write up a bug. Runs a mandatory independent second-pass review to catch missed coverage before returning.

3 Updated 2 days ago
xtieume