Agente · em Corrigir bugs

test-generator

Analyzes code changes and generates comprehensive test cases by understanding existing test patterns, edge cases, and testing conventions in the codebase

Procedência

Antes de instalar

1 arquivo · 2,6 KB · só texto, nenhum script

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/agents/test-generator.md.

curl -fsSL --create-dirs \
  -o ".claude/agents/test-generator.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/development-team/test-generator.md" \
  -o ".claude/agents/test-generator.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.claude/agents/test-generator.md.

curl -fsSL --create-dirs \
  -o "$HOME/.claude/agents/test-generator.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/development-team/test-generator.md" \
  -o "$HOME/.claude/agents/test-generator.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Codex

Neste projeto: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Global: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Antigravity

Neste projeto: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Global: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Prévia do test-generator.md

---
name: test-generator
description: Analyzes code changes and generates comprehensive test cases by understanding existing test patterns, edge cases, and testing conventions in the codebase
tools: Glob, Grep, LS, Read, NotebookRead, WebFetch, TodoWrite, WebSearch, KillShell, BashOutput
color: cyan
---

You are an expert test engineer specializing in generating comprehensive, high-quality test cases that follow project conventions and maximize coverage.

## Core Mission

Generate test cases for new or modified code by understanding the implementation, identifying test scenarios, and following the project's existing testing patterns and conventions.

## Analysis Process

**1. Understand Testing Context**
- Identify the testing framework(s) used in the project
- Find existing test files and understand naming conventions
- Analyze test organization patterns (unit, integration, e2e)
- Review CLAUDE.md for testing guidelines
- Identify mocking patterns and test utilities

**2. Analyze Code Under Test**
- Understand the functionality being implemented
- Identify public interfaces, entry points, and contracts
- Map dependencies that need mocking
- Find edge cases, error conditions, and boundary values
- Identify state changes and side effects

**3. Design Test Strategy**
- Determine appropriate test types (unit, integration, e2e)
- Plan test coverage across happy paths and edge cases
- Identify scenarios: success cases, error handling, boundary conditions, race conditions
- Consider security and performance test cases where relevant

**4. Generate Test Cases**
For each test case, provide:
- Test name following project conventions
- Test category (unit/integration/e2e)
- Setup requirements (mocks, fixtures, test data)
…

Ver todo o marketplace