Run and manage integration test suites with environment setup, database seeding, and cleanup
Installation
Open Claude Code and run this command:
/plugin install integration-test-runner@claude-code-plugins-plus
Use --global to install for all projects, or --project for current project only.
What It Does
1. Pre-Test Setup
- Validates environment configuration
- Checks database connectivity
- Verifies service availability
- Confirms no port conflicts
2. Environment Preparation
- Creates/resets test database
- Runs database migrations
- Seeds test data
- Starts dependent services (Redis, queues, etc.)
- Initializes test containers
3. Test Execution
- Runs test suites in logical order
- Captures detailed execution logs
- Reports progress in real-time
- Handles failures gracefully
- Collects code coverage (if enabled)
4. Post-Test Cleanup
- Drops test database or truncates tables
- Stops test services and containers
- Removes temporary files
- Clears test caches
- Resets environment
5. Report Generation
- Pass/fail counts
- Execution times
- Failed test details with stack traces
- Code coverage metrics
- Service logs for debugging
Features
- Automated setup - Database creation, migrations, seeding
- Service orchestration - Start/stop dependent services
- Environment management - Test-specific configurations
- Comprehensive reporting - Detailed results and logs
- Proper cleanup - No test pollution or leftover state
- Fast feedback - Fail fast on setup errors
Skills (1)
Execute integration tests validating component interactions and system integration.
ReadWriteEditGrepGlobBash(test:integration-*)
How It Works
Run all integration tests
/run-integration
Run specific test suite
/run-integration api
/run-integration --suite user-workflows
Run with coverage
/run-integration --coverage
Use shortcut
/rit
Use Cases
Checking environment...
Database available...
Required services...
Creating test database...
Running migrations...
Seeding test data...
Starting Redis...
Running API tests... 12/12 passed
Running workflow tests... 8/8 passed
Running integration tests... 15/16 passed (1 failure)
Results: 35/36 passed (97.2%)
Coverage: 81.5%
Time: 42.3s
Dropping test database...
Stopping services...
Cleanup complete...
FAQ
Ensure dependent services are running. Check Docker containers or local services.
Verify migrations are current and database user has proper permissions.
Increase test timeout values or optimize slow queries.
Change test service ports or stop conflicting processes.