pest-testing
Originally fromspatie/freek.dev
Installation
SKILL.md
Pest Testing 4
Documentation
Use search-docs for detailed Pest 4 patterns and documentation.
Basic Usage
Creating Tests
All tests must be written using Pest. Use php artisan make:test --pest {name}.
The {name} argument should include only the path and test name, but should not include the test suite.
- Incorrect:
php artisan make:test --pest Feature/SomeFeatureTestwill generatetests/Feature/Feature/SomeFeatureTest.php - Correct:
php artisan make:test --pest SomeControllerTestwill generatetests/Feature/SomeControllerTest.php - Incorrect:
php artisan make:test --pest --unit Unit/SomeServiceTestwill generatetests/Unit/Unit/SomeServiceTest.php - Correct:
php artisan make:test --pest --unit SomeServiceTestwill generatetests/Unit/SomeServiceTest.php