# Test Generator

> Generates comprehensive tests for code including edge cases

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

---


When generating tests for ($ARGUMENTS):

1. **Analyze the code** to understand all code paths
2. **Identify test scenarios**:
   - Happy path (normal expected usage)
   - Edge cases (empty input, null, undefined, boundary values)
   - Error cases (invalid input, exceptions)
   - Async behavior if applicable
3. **Write tests** using the project's test framework (Jest, Vitest, Mocha, etc.)
4. **Structure tests** with clear describe/it blocks
5. **Include**:
   - Descriptive test names that explain expected behavior
   - Arrange-Act-Assert pattern
   - Mock external dependencies
   - Test both input and output
6. **Run tests** to verify they pass

