Generate complete test suites automatically by reading package.json and analyzing project structure
Automatically generates comprehensive test suites by analyzing your package.json and project structure. Use this when you need to quickly set up Jest, Vitest, Playwright, or Newman tests for an existing codebase without manual configuration.
/plugin marketplace add vanman2024/dev-lifecycle-marketplace/plugin install testing@dev-lifecycle-marketplace[project-path]šØ EXECUTION NOTICE FOR CLAUDE
When you invoke this command via SlashCommand, the system returns THESE INSTRUCTIONS below.
YOU are the executor. This is NOT an autonomous subprocess.
Immediately after SlashCommand returns, start executing Phase 0, then Phase 1, etc.
See @CLAUDE.md section "SlashCommand Execution - YOU Are The Executor" for detailed explanation.
Goal: Automatically generate comprehensive test suites (Jest, React Testing Library, Playwright, Newman) by analyzing package.json testing configuration and project structure
Actions:
Read package.json to detect testing configuration:
@package.json
Check for existing test setup files:
!{Glob **/{jest,vitest,playwright}.config.{js,ts}} !{Glob **/{jest,vitest}.setup.{js,ts}}
Analyze project structure to identify components/routes to test:
!{Glob src//*.{ts,tsx,js,jsx}} !{Glob app//.{ts,tsx,js,jsx}} !{Glob pages/**/.{ts,tsx,js,jsx}}
Actions:
Launch test-suite-generator agent to create comprehensive test files:
Task(description="Generate test suite", subagent_type="testing:test-suite-generator", prompt="Generate complete test suites for this project.
Project path: $ARGUMENTS
Package.json testing config: @package.json
Existing test setup:
Project structure:
Tasks:
Deliverable: Complete test suite with passing tests and proper coverage")
Actions:
After test generation, verify tests pass:
!{bash npm test}
Check test coverage:
!{bash npm test -- --coverage}
Actions:
Display results:
Test Suite Generated:
Test Results:
Next Steps:
/testing:test to execute full suite