Setup Comprehensive Testing
npx claude-code-templates@latest --command testing/setup-comprehensive-testing Content
Setup Comprehensive Testing
Setup complete testing infrastructure with multi-layer testing strategy: $ARGUMENTS
Current Testing Infrastructure
- Project type: !
[ -f package.json ] && echo "Node.js" || [ -f requirements.txt ] && echo "Python" || [ -f pom.xml ] && echo "Java" || echo "Multi-language" - Existing tests: !
find . -name "*.test.*" -o -name "*.spec.*" | wc -ltest files - CI system: !
find . -name ".github" -o -name ".gitlab-ci.yml" -o -name "Jenkinsfile" | head -1 || echo "No CI detected" - Framework: !
grep -l "jest\\|vitest\\|pytest\\|junit" package.json requirements.txt pom.xml 2>/dev/null | head -1 || echo "Detect framework"
Task
Implement comprehensive testing infrastructure with multi-layer testing strategy:
Setup Scope: Use $ARGUMENTS to focus on unit, integration, e2e, visual, performance testing, or full-stack implementation
Comprehensive Testing Framework:
- Testing Strategy Design - Analyze project requirements, define testing pyramid, plan coverage goals, optimize testing investment
- Unit Testing Setup - Configure primary framework (Jest, Vitest, pytest), setup test runners, implement test utilities, optimize execution
- Integration Testing - Setup integration test framework, configure test databases, implement API testing, optimize test isolation
- E2E Testing Configuration - Setup browser testing (Cypress, Playwright), configure test environments, implement page objects
- Visual & Performance Testing - Setup visual regression testing, configure performance benchmarks, implement accessibility testing
- CI/CD Integration - Configure automated test execution, setup parallel testing, implement quality gates, optimize pipeline performance
Advanced Features: Contract testing, chaos engineering, load testing, security testing, cross-browser testing, mobile testing.
Infrastructure Quality: Test reliability, execution performance, maintainability, scalability, cost optimization.
Output: Complete testing infrastructure with configured frameworks, CI integration, quality metrics, and maintenance workflows.