testing_plan_integration — команда для Claude Code: что делает
Команда формирует план интеграционных тестов для целевого кода. Она находит узкие места в архитектуре и предлагает рефакторинг с внедрением зависимостей.
npx claude-code-templates@latest --command testing/testing_plan_integrationЧто делает testing_plan_integration
Команда анализирует проект через Bash: проверяет наличие Cargo.toml или package.json, а затем ищет существующие тесты по шаблонам *.test.* и *.spec.*. Это определяет контекст сборки. Дальше Claude Code оценивает уровень зацепления компонентов в указанном файле.
План тестирования охватывает границы компонентов, проектирование моков для внешних сервисов и сценарии обработки ошибок. Поддерживаются inline-тесты в стиле Rust и контрактное тестирование. В вывод входят рекомендации по рефакторингу и выделению интерфейсов.
Команде требуются разрешения Read, Write, Edit и Bash. Без доступа к Bash Claude Code не сможет определить стек проекта и найти текущие спецификации.
Какие задачи решает
- спланировать интеграционные сценарии и критические пути передачи данных
- выявить сильную связанность компонентов перед написанием тестов
- составить стратегию изоляции и моков для внешних сервисов
- подготовить план inline-тестов в стиле Rust
Примеры запросов агенту
- /testing_plan_integration src/services/billing.ts --refactoring-suggestions
- /testing_plan_integration crates/auth --rust --inline
- /testing_plan_integration src/api/orders.py integration
Как установить testing_plan_integration
1Через claude-code-templates
npx claude-code-templates@latest --command testing/testing_plan_integration2Вручную: положить файлы
.claude/commands/testing_plan_integration.mdВызов — /testing_plan_integration. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/testing_plan_integration.mdВызов — /prompts:testing_plan_integration. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/testing_plan_integration.prompt.mdВручную: положить файлы
.gemini/commands/testing_plan_integration.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о testing_plan_integration
Как установить testing_plan_integration в Claude Code?
Выполните команду npx claude-code-templates@latest --command testing/testing_plan_integration в терминале проекта.
Что делает команда testing_plan_integration?
Она исследует тестируемость целевого кода, оценивает архитектурные зависимости и формирует детальный план интеграционного тестирования со стратегией моков.
Какие аргументы принимает testing_plan_integration?
Команда принимает путь к коду или типу тестов, а также флаги --rust, --inline и --refactoring-suggestions.
Исходный текст
testing_plan_integration.md · MIT
--- allowed-tools: Read, Write, Edit, Bash argument-hint: "[target-code] | [test-type] | --rust | --inline | --refactoring-suggestions" description: Create comprehensive integration testing plan with inline tests and refactoring recommendations --- # Testing Plan Integration Create integration testing plan with inline test strategy and refactoring suggestions: **$ARGUMENTS** ## Current Testing Context - Project type: !`[ -f Cargo.toml ] && echo "Rust project" || [ -f package.json ] && echo "Node.js project" || echo "Multi-language project"` - Test framework: !`find . -name "*.test.*" -o -name "*.spec.*" | head -3` existing tests - Target code: Analysis of $ARGUMENTS for testability assessment - Integration complexity: Assessment of component interactions and dependencies ## Task Execute comprehensive integration testing plan with testability analysis: **Planning Focus**: Use $ARGUMENTS to specify target code, test type requirements, Rust inline testing, or refactoring suggestions **Integration Testing Framework**: 1. **Code Testability Analysis** - Analyze target code structure, identify testing challenges, assess coupling levels, evaluate dependency injection 2. **Test Strategy Design** - Design integration test approach, plan inline vs separate test files, identify test boundaries, optimize test isolation 3. **Refactoring Assessment** - Identify testability improvements, suggest dependency injection, recommend interface abstractions, optimize component boundaries 4. **Test Case Planning** - Design integration scenarios, identify critical paths, plan data flow testing, assess error handling coverage 5. **Mock Strategy** - Plan external dependency mocking, design test doubles, identify integration boundaries, optimize test performance 6. **Execution Planning** - Design test execution order, plan test data management, optimize test environment setup, ensure test isolation **Advanced Features**: Rust-style inline testing, property-based integration tests, contract testing, service virtualization, chaos engineering integration. **Quality Assurance**: Test maintainability, execution performance, coverage optimization, feedback loop efficiency. **Output**: Comprehensive integration test plan with test case specifications, refactoring recommendations, implementation strategy, and quality metrics.
© davila7 · MIT · davila7/claude-code-templates