--- description: Run comprehensive test suite with detailed reporting argument-hint: [test-type] [coverage-threshold] --- # Test Execution Command Execute comprehensive test suite with detailed reporting and coverage analysis. ## Context - Test type: $1 (unit|integration|e2e|all - default: all) - Coverage threshold: $2 (default: 80%) - Current test files: !`find . -name "*test*" -o -name "*spec*" | head -10` - Test configuration: @package.json ## Test Execution Strategy ### 1. **Unit Tests** - Run isolated component tests - Validate business logic - Check error handling - Measure code coverage ### 2. **Integration Tests** - Test component interactions - Validate API endpoints - Check database operations - Test external service integrations ### 3. **End-to-End Tests** - Full user workflow testing - Cross-browser compatibility - Performance validation - Accessibility compliance ### 4. **Test Reporting** - Generate detailed test reports - Coverage analysis and visualization - Performance metrics - Failure analysis and recommendations ## Quality Gates - All tests must pass - Coverage must meet $2% threshold - No critical security vulnerabilities - Performance benchmarks within limits ## Expected Outcome - Complete test execution report - Coverage analysis with recommendations - Performance metrics and benchmarks - Actionable feedback for improvements ## Failure Handling If tests fail: - Detailed failure analysis - Root cause identification - Suggested fixes and improvements - Priority-based remediation plan