generate_unit_tests
Generate comprehensive unit tests for code with framework-specific patterns and complete coverage strategies to ensure production-ready quality.
Instructions
Generate comprehensive unit tests for code with framework-specific patterns and complete coverage strategies
WORKFLOW: Ideal for creating production-ready code, tests, and documentation TIP: Generate unlimited iterations locally, then review with Claude SAVES: Claude context for strategic decisions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | No | The code to generate tests for (for single-file analysis) | |
context | No | Optional context for framework-specific testing patterns | |
coverageTarget | No | Test coverage target level | comprehensive |
filePath | No | Path to single file to generate tests for | |
files | No | Array of specific file paths (for multi-file test generation) | |
language | No | Programming language | javascript |
maxDepth | No | Maximum directory depth for multi-file discovery (1-5) | |
projectPath | No | Path to project root (for multi-file test generation) | |
testFramework | No | Testing framework to use (jest, mocha, pytest, phpunit, etc.) | jest |