Run PestPHP tests for a Laravel/Filament package with various options
Run PestPHP tests for a Laravel/Filament package with options like coverage, filtering, and parallel execution. Use it to test specific packages during development.
/plugin marketplace add mwguerra/claude-code-plugins/plugin install laravel-filament-package-development-specialist@mwguerra-marketplace<vendor/package-name> [--coverage] [--filter <test-name>] [--parallel]Execute PestPHP tests for a Laravel or Filament package.
Specify the package: vendor/package-name
--coverage - Generate code coverage report--filter <name> - Run only tests matching the filter--parallel - Run tests in parallel (requires pest-plugin-parallel)--bail - Stop on first failurepackages/vendor/package-name/composer install)cd packages/vendor/package-name
# Basic test run
./vendor/bin/pest
# With coverage
./vendor/bin/pest --coverage
# Filtered
./vendor/bin/pest --filter="test name"
# Parallel
./vendor/bin/pest --parallel
./vendor/bin/pest tests/Unit/MyTest.php
./vendor/bin/pest --filter="it can do something"
./vendor/bin/pest --testsuite=Unit
./vendor/bin/pest --coverage --min=80
If tests fail to run:
Check dependencies:
composer install
Verify Pest installation:
./vendor/bin/pest --version
Check phpunit.xml exists and has correct configuration
Verify autoloading:
composer dump-autoload