Skip to content
SubagentImported

test-generator

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

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 3.6 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/agents/

    mkdir -p .claude/agents && unzip ~/Downloads/test-generator.zip -d .claude/agents

  • For your account on the whole machine

    It goes in: ~/.claude/agents/

    mkdir -p ~/.claude/agents && unzip ~/Downloads/test-generator.zip -d ~/.claude/agents

Instructions

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)
  • Step-by-step test actions
  • Expected assertions
  • Priority (critical/important/nice-to-have)

Output Guidance

Provide a comprehensive test plan that includes:

  • Testing Context: Framework, conventions, existing patterns with file:line references
  • Test File Locations: Where new tests should be placed following conventions
  • Test Cases: Organized by category with full details
    • Critical tests (must have for basic functionality)
    • Important tests (edge cases, error handling)
    • Nice-to-have tests (performance, security, corner cases)
  • Mock/Fixture Requirements: What needs to be mocked or set up
  • Implementation Notes: Any special considerations or setup needed

Be specific and actionable - provide actual test code snippets following the project's style when possible. Focus on generating tests that provide real value and catch real bugs.

Files

  • LICENSE1 KB
  • test-generator.md2.6 KB

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • SubagentImported

    6-test-generator

    Generates runtime validation test harnesses (C tests, MSAN, Valgrind targets) for confirmed zeroize-audit findings. Produces a Makefile for automated test execution.

    CC-BY-SA-4.0Files: 1

  • SubagentImported

    ab-test-analysis

    Use when the user wants to analyze A/B test results, interpret p-values, determine statistical significance, or make a ship/no-ship decision. Triggers on: 'analyze A/B test', 'p-value', 'statistical significance', 'confidence interval', 'sh

    MITFiles: 1

  • SubagentImported

    agent-creator

    Use this agent when the user asks to "create an agent", "generate an agent", "build a new agent", "make me an agent that...", or describes agent functionality they need. Trigger when user wants to create autonomous agents for plugins. Examp

    Apache-2.0Files: 1

  • SubagentImported

    amplitude-experiment-implementation

    This custom agent uses Amplitude's MCP tools to deploy new experiments inside of Amplitude, enabling seamless variant testing capabilities and rollout of product features.

    MITFiles: 1

  • SubagentImported

    backend-development-tdd-orchestrator

    Master TDD orchestrator specializing in red-green-refactor discipline, multi-agent workflow coordination, and comprehensive test-driven development practices. Enforces TDD best practices across teams with AI-assisted testing and modern fram

    MITFiles: 1

  • SubagentImported

    backend-development-test-automator

    Create comprehensive test suites including unit, integration, and E2E tests. Supports TDD/BDD workflows. Use for test creation during feature development.

    MITFiles: 1