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