generate-test-cases
Generate comprehensive test cases with automatic analysis and coverage optimization
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
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/commands/
mkdir -p .claude/commands && unzip ~/Downloads/generate-test-cases.zip -d .claude/commandsFor your account on the whole machine
It goes in: ~/.claude/commands/
mkdir -p ~/.claude/commands && unzip ~/Downloads/generate-test-cases.zip -d ~/.claude/commands
Instructions
Generate Test Cases
Generate comprehensive test cases with automatic analysis and intelligent coverage: $ARGUMENTS
Current Test Generation Context
- Target code: Analysis of $ARGUMENTS for test case generation requirements
- Test framework: !
find . -name "jest.config.*" -o -name "*.test.*" | head -1 && echo "Jest/Vitest detected" || echo "Detect framework" - Code complexity: !
find . -name "*.js" -o -name "*.ts" -o -name "*.py" | xargs wc -l 2>/dev/null | tail -1 | awk '{print $1}' || echo "0"lines of code - Existing patterns: !
find . -name "*.test.*" -o -name "*.spec.*" | head -3test file patterns
Task
Execute intelligent test case generation with comprehensive coverage and optimization:
Generation Scope: Use $ARGUMENTS to specify target file, unit tests, integration tests, edge cases, or automatic comprehensive generation
Test Case Generation Framework:
- Code Structure Analysis - Parse function signatures, analyze control flow, identify branching paths, assess complexity metrics
- Test Pattern Recognition - Analyze existing test patterns, identify testing conventions, extract reusable patterns, optimize consistency
- Input Space Analysis - Identify parameter domains, analyze boundary conditions, discover edge cases, evaluate error conditions
- Test Case Design - Generate positive test cases, negative test cases, boundary value tests, equivalence class tests
- Mock Strategy Planning - Identify external dependencies, design mock implementations, create test data factories, optimize test isolation
- Coverage Optimization - Ensure path coverage, optimize test efficiency, eliminate redundancy, maximize testing value
Advanced Features: Automatic edge case discovery, intelligent input generation, test data synthesis, coverage gap analysis, performance test generation.
Quality Assurance: Test maintainability, execution performance, assertion quality, debugging effectiveness.
Output: Comprehensive test case suite with optimized coverage, intelligent mocking, proper assertions, and maintenance guidelines.
Files
- LICENSE1 KB
- generate-test-cases.md2.3 KB
What the automatic scan found
We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.
- Needs a lookAllowed tools with no limits
In file cli-tool/components/commands/testing/generate-test-cases.md
Comments (0)
No comments yet. Be the first.
Sign in to comment. Commenting comes at level 1 (Member).