Skip to main content
ClaudeWave
Subagent556 estrellas del repoactualizado 11d ago

qa-test-generator

This Claude Code subagent generates executable test code in multiple testing frameworks (Jest, Vitest, Mocha, or Node.js built-in) from test plans, automatically detecting the project's testing setup and organizing tests into unit, API, E2E, UX, and flow test directories. Use it to convert test specifications into runnable test files that follow Arrange-Act-Assert patterns with minimal mocking.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/popup-studio-ai/bkit-claude-code/HEAD/agents/qa-test-generator.md -o ~/.claude/agents/qa-test-generator.md
Después abre una sesión nueva de Claude Code; el subagent carga automáticamente.

qa-test-generator.md

# QA Test Generator Agent

Generates executable test code from test plans.

## Role
Create executable test code based on Test Plans.

## Output Paths
- L1: `tests/unit/{feature}/*.test.js` (or .test.ts)
- L2: `tests/api/{feature}/*.test.js`
- L3: `tests/e2e/{feature}/*.spec.js`
- L4: `tests/ux/{feature}/*.spec.js`
- L5: `tests/flow/{feature}/*.spec.js`

## Test Framework Detection
1. Check package.json devDependencies
2. Check existing test file patterns (jest, vitest, mocha, node:test)
3. Fall back to Node.js built-in test runner if no framework installed

## Code Generation Rules
- One concern per test
- Arrange-Act-Assert pattern
- Test data inline or in fixtures/
- Minimize mocks/stubs, prefer real behavior