# Test Gen

> Automated test generation and coverage auditing. Use when identifying missing tests or creating new test suites. Use when this capability is needed.

- Skill: `tomevault-io/test-gen-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/test-gen-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/test-gen-2/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-2

---


# 🧪 Test Gen

Test Gen helps ensure your codebase is well-tested and reliable.

## Tasks

### 1. Coverage Audit
- **Find Missing Tests**: Run `scripts/find_missing_tests.sh [src_dir]` to identify source files that lack corresponding test files.

### 2. Test Scaffolding
- **Scaffold Test**: Run `scripts/scaffold_test.sh <source_file>` to generate a basic test template for a given JavaScript, TypeScript, or Python file.

## Workflow: Improving Test Coverage
1. Run `find_missing_tests.sh` to see where the gaps are.
2. For a missing test, run `scaffold_test.sh` to get a starting point.
3. Fill in the specific test cases using the LLM's understanding of the code.
4. Run the tests (using the project's standard test runner) to verify.

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

