setup-comprehensive-testing — команда для Claude Code
Команда проектирует многоуровневую стратегию тестирования и настраивает её в проекте. Подходит для unit-, integration-, e2e-, visual- и performance-сценариев.
npx claude-code-templates@latest --command testing/setup-comprehensive-testingЧто делает setup-comprehensive-testing
setup-comprehensive-testing сначала проверяет тип проекта, существующие тестовые файлы, CI-конфигурацию и знакомые фреймворки. Для анализа и изменений команда использует Read, Write, Edit и Bash, а область работ берёт из аргумента, например --unit, --integration, --e2e или --full-stack.
Затем она может настроить unit-тесты с Jest, Vitest или pytest, интеграционные проверки с тестовой базой и API-тестами, браузерные сценарии на Cypress или Playwright, визуальные и performance-проверки. В план также входят CI/CD, параллельный запуск, quality gates, contract testing, chaos engineering и security testing. Без доступа к Bash команда не сможет выполнить свои проверки и команды настройки.
Какие задачи решает
- спроектировать пирамиду тестирования
- настроить Jest, Vitest или pytest
- добавить интеграционные и API-тесты
- подготовить e2e-сценарии на Cypress или Playwright
- подключить тесты к CI/CD
Примеры запросов агенту
- Настрой тестовую инфраструктуру для всего проекта с помощью
/testing:setup-comprehensive-testing --full-stack. - Добавь unit-тесты и настрой подходящий фреймворк через
/testing:setup-comprehensive-testing --unit. - Подготовь браузерные проверки для области
checkoutчерез/testing:setup-comprehensive-testing checkout --e2e.
Как установить setup-comprehensive-testing
1Через claude-code-templates
npx claude-code-templates@latest --command testing/setup-comprehensive-testing2Вручную: положить файлы
.claude/commands/setup-comprehensive-testing.mdВызов — /setup-comprehensive-testing. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/setup-comprehensive-testing.mdВызов — /prompts:setup-comprehensive-testing. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/setup-comprehensive-testing.prompt.mdВручную: положить файлы
.gemini/commands/setup-comprehensive-testing.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о setup-comprehensive-testing
Как установить setup-comprehensive-testing в Claude Code?
Выполните npx claude-code-templates@latest --command testing/setup-comprehensive-testing, затем используйте файл .claude/commands/setup-comprehensive-testing.md.
Что делает setup-comprehensive-testing?
Команда анализирует текущую тестовую инфраструктуру и настраивает выбранные уровни проверок: unit, integration, e2e, visual, performance или full-stack. Она также добавляет CI/CD-интеграцию и quality gates.
Какие фреймворки поддерживает setup-comprehensive-testing?
Для unit-тестов команда упоминает Jest, Vitest и pytest, а для браузерных проверок Cypress и Playwright.
Исходный текст
setup-comprehensive-testing.md · MIT
--- allowed-tools: Read, Write, Edit, Bash argument-hint: "[scope] | --unit | --integration | --e2e | --visual | --performance | --full-stack" description: Setup complete testing infrastructure with framework configuration and CI integration --- # 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 -l` test 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**: 1. **Testing Strategy Design** - Analyze project requirements, define testing pyramid, plan coverage goals, optimize testing investment 2. **Unit Testing Setup** - Configure primary framework (Jest, Vitest, pytest), setup test runners, implement test utilities, optimize execution 3. **Integration Testing** - Setup integration test framework, configure test databases, implement API testing, optimize test isolation 4. **E2E Testing Configuration** - Setup browser testing (Cypress, Playwright), configure test environments, implement page objects 5. **Visual & Performance Testing** - Setup visual regression testing, configure performance benchmarks, implement accessibility testing 6. **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.
© davila7 · MIT · davila7/claude-code-templates