Blueprint as of v2.8.0 now has first party support for generating PestPHP tests. So this package is now read only and you should update blueprint to use their new test generation.
📣 Shoutout to Jason McCreary whose Blueprint and Assertions packages lay the groundwork for this addon. 🙌
Installing this addon will allow you to generate Pest HTTP tests instead of the standard PHPUnit HTTP tests with the php artisan blueprint:build
command.
You can install this package and Blueprint via composer:
composer require --dev laravel-shift/blueprint fidum/laravel-blueprint-pestphp-addon
-
Install Pest by following their installation instructions.
-
Refer to Blueprint's Basic Usage to get started. Afterwards you can run the
blueprint:build
command to generate Pest HTTP tests automatically for your controllers. -
Read Pest's Writing Tests to help understand the generated test output.
We use fixtures in our tests to make sure this package generates the files correctly. Feel free to browse them at the link below as examples of what output you should expect.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email :author_email instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.