title | description |
---|---|
Installation |
Installation |
Requirements: PHP 7.3+.
- First, install Pest via the Composer package manager:
composer require pestphp/pest --dev --with-all-dependencies
- On Laravel, require the
pest-plugin-laravel
and run thepest:install
Artisan command:
composer require pestphp/pest-plugin-laravel --dev
php artisan pest:install
- On other projects, create a
tests
folder and run thepest --init
command:
./vendor/bin/pest --init
- Finally, you can run Pest directly from the command line:
./vendor/bin/pest
In the next section, we are going to learn how to write tests with Pest: Writing Tests →