Test Quality Analyzer
Analyze test suite quality with comprehensive metrics and improvement recommendations
$ npx claude-code-templates@latest --command="testing/test-quality-analyzer" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Test Quality Analyzer
Analyze test suite quality with comprehensive metrics and actionable improvement insights: $ARGUMENTS
Current Quality Context
- Test coverage: !
find . -name "coverage" -type d | head -1 && echo "Coverage data available" || echo "No coverage data" - Test files: !
find . -name ".test." -o -name ".spec." | wc -ltest files - Test complexity: Analysis of test suite maintainability and effectiveness patterns
- Performance metrics: Current test execution times and resource utilization
Task
Execute comprehensive test quality analysis with improvement recommendations and optimization strategies:
Analysis Type: Use $ARGUMENTS to focus on coverage quality, test effectiveness, maintainability analysis, or performance analysis Test Quality Analysis Framework:- Coverage Quality Assessment - Analyze coverage depth, evaluate coverage quality, assess edge case handling, identify coverage gaps
- Test Effectiveness Evaluation - Measure defect detection capability, analyze test reliability, assess assertion quality, evaluate test value
- Maintainability Analysis - Evaluate test code quality, analyze test organization, assess refactoring needs, optimize test structure
- Performance Assessment - Analyze execution performance, identify bottlenecks, optimize test speed, reduce resource consumption
- Anti-Pattern Detection - Identify testing anti-patterns, detect flaky tests, analyze test smells, recommend corrections
- Quality Metrics Tracking - Implement quality scoring, track improvement trends, configure quality gates, optimize quality processes
Related Claude Code Commands
Generate Tests
Generate a complete test file for a specified source file or component. Use when the user explicitly asks to write, create, or generate tests for a specific file.
Test Coverage
Analyze and improve test coverage with comprehensive reporting and gap identification
Generate Test Cases
Generate comprehensive test cases with automatic analysis and coverage optimization
E2e Setup
Configure comprehensive end-to-end testing suite with framework selection and CI integration
Write Tests
Write comprehensive unit and integration tests with proper mocking and coverage
Test Automation Orchestrator
Orchestrate comprehensive test automation with intelligent execution and optimization
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.