Agent

Test Generator

Analyzes code changes and writes test cases that match existing patterns.

安裝

manual
cp test-generator.md ~/.claude/agents/

把這段加入 Claude Code MCP 設定,或直接透過 CLI 執行。

介紹

Reads existing tests to learn conventions before generating. Will not invent new test idioms when the codebase already has a pattern.

常見使用情境

  • Cover a new repository method
  • Backfill missing tests
  • Generate edge-case scenarios

標籤

testinggenerationtdd