You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just did a clean install of Laravel 9 and was running through some of the php artisan make:model commands. I saw there was also a --pest flag to generate an accompanying test for the model.
This is fine and also the docs state you can create tests using Pest:
However nowhere is there any mention that you should install Pest for any of this to work. For PHPUnit is makes perfect sense to omit a composer require because PHPUnit is already part of the require-dev in the composer file.
I think it should be made clear that this is not some out of the box solution and that it needs to be installed explicitly. But even beyond that point I find it pretty fucking strange that we have an option available like a --pest flag which is part of an integral command (namely make:model) which totally breaks down without you manually installing a third party package. This just feels wrong.
Either make it part of the require-dev in the composer.json or don't include these flags at all.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I just did a clean install of Laravel 9 and was running through some of the
php artisan make:model
commands. I saw there was also a--pest
flag to generate an accompanying test for the model.This is fine and also the docs state you can create tests using Pest:
https://laravel.com/docs/9.x/testing#creating-tests
However nowhere is there any mention that you should install Pest for any of this to work. For PHPUnit is makes perfect sense to omit a
composer require
because PHPUnit is already part of therequire-dev
in the composer file.I think it should be made clear that this is not some out of the box solution and that it needs to be installed explicitly. But even beyond that point I find it pretty fucking strange that we have an option available like a
--pest
flag which is part of an integral command (namelymake:model
) which totally breaks down without you manually installing a third party package. This just feels wrong.Either make it part of the
require-dev
in thecomposer.json
or don't include these flags at all.Beta Was this translation helpful? Give feedback.
All reactions