← Back to registry

Test Generator

Generates comprehensive unit and integration tests for any function or module

by communityv1.0.00 downloads~ tokens
testingquality

Install to project

curl -sL https://api.freeskill.cloud/skills/test-generator/SKILL.md -o .claude/skills/test-generator/SKILL.md

Add full registry to Claude Code

/plugin marketplace add freeskill/registry

SKILL.md

---
name: Test Generator
description: Generates comprehensive unit and integration tests for any function or module
tags: [testing, quality]
author: community
version: 1.0.0
---

# Test Generator

Generate tests that cover:

1. **Happy path** — expected inputs produce expected outputs
2. **Edge cases** — empty, null, zero, max, min, boundary values
3. **Error cases** — invalid inputs throw or return correct errors
4. **Side effects** — verify external calls (DB, API, FS) happen correctly

Use the project's existing test framework and style.
Test behaviour, not implementation. One assertion per test where possible.