Download

slash command · Testing & QA

Generate Tests

by davila7

Generate a complete test file for a specified source file or component. Use when the user explicitly asks to write, create, or generate tests for a specific file.

Calyban is a free desktop app. It checks Generate Tests for red flags before installing, lets you choose the agent and folder, and undoes it in one click.

Install Generate Tests manually

Prefer the terminal? This does the same thing as Calyban's install.

Claude Code

mkdir -p ~/.claude/commands
curl -fsSL https://raw.githubusercontent.com/davila7/claude-code-templates/8634845c7c32a7c9726d4a67d41ba3b60ca77111/cli-tool/components/commands/testing/generate-tests.md -o ~/.claude/commands/generate-tests.md

Codex

mkdir -p ~/.codex/prompts
curl -fsSL https://raw.githubusercontent.com/davila7/claude-code-templates/8634845c7c32a7c9726d4a67d41ba3b60ca77111/cli-tool/components/commands/testing/generate-tests.md -o ~/.codex/prompts/generate-tests.md

Start a new Claude Code & Codex session afterwards so it picks up the change.

Similar slash commands

All slash commands →

Guides

Listed in the public Calyban catalog. Generate Tests is made by davila7, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.