# Test Gen

> Generate comprehensive tests using Vitest with edge cases Use when this capability is needed.

- Skill: `tomevault-io/test-gen` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/test-gen`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/test-gen/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/test-gen

---


# Test Generation

Use this skill to generate tests that meet SISU's coverage standards.

## Goals

- Cover happy path, edge cases, and invalid inputs
- Use Vitest syntax and patterns
- Keep tests deterministic and isolated

## Steps

1. Identify target module and public behavior
2. Enumerate input variations
3. Generate tests for error handling and cancellation
4. Validate coverage thresholds (≥ 80%)

## Resources

See `resources/vitest-patterns.md` for patterns and examples.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/finger-gun) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

