Back to MD Exchange
    Claude Code Skillstestingjestplaywrightautomationqualitytdd

    Automated Testing Suite Generator

    Generates comprehensive test suites for your codebase — unit tests, integration tests, and E2E scenarios. Covers edge cases humans miss.

    K
    keygroup|March 25, 2026|Updated Oct 8
    0 downloads0 stars

    Uploaded markdown content, not a verification of tool compatibility or results. Review the raw text, commands, and permissions before using it. Stars require an account.


    name: test-generator
    description: AI-powered test suite generation
    model: claude-opus-4-6


    Automated Testing Suite Generator

    Generate comprehensive tests that actually catch bugs.

    What It Creates

    Unit Tests

    • Function input/output validation
    • Edge cases (null, undefined, empty, boundary values)
    • Error handling paths
    • Mock generation for dependencies

    Integration Tests

    • API endpoint testing (all methods, status codes)
    • Database query validation
    • Authentication flow testing
    • Webhook handler testing

    E2E Tests (Playwright)

    • User flow scenarios
    • Form submission and validation
    • Navigation and routing
    • Responsive layout checks

    Usage (illustrative custom-wrapper commands)

    These are not built-in Claude Code subcommands. They require a custom wrapper; consult the wrapper's documentation before use.

    # Generate tests for a specific file
    claude test-gen src/lib/auth.ts
    
    # Generate tests for entire directory
    claude test-gen src/api/ --framework jest
    
    # Generate E2E tests from user stories
    claude test-gen --e2e "User can register, login, and update profile"
    
    # Generate tests for uncovered code
    claude test-gen --coverage --min 80
    

    Smart Analysis

    The generator:

    • Reads your existing test patterns and follows them
    • Identifies untested code paths via static analysis
    • Generates realistic test data (not just "foo" and "bar")
    • Creates proper test isolation (setup/teardown)
    • Handles async code correctly