Skip to content

Conversation

jessarcher
Copy link
Member

This PR updates the standalone Breeze installer to default to Pest when it is already installed, either via the Laravel installer or installed manually.

When running php artisan breeze:install with no arguments, the testing framework prompt will still be displayed, but defaulting to Pest when installed:

image

When passing arguments to the installer (e.g. php artisan breeze:install blade) the prompt does not appear. Currently, it will install PHPUnit tests unless the --pest flag was passed. With this change, it will automatically install Pest tests when appropriate.

@jessarcher jessarcher requested a review from nunomaduro August 8, 2023 02:15
@jessarcher
Copy link
Member Author

Ultimately I think it would be nice to never prompt for the testing framework outside of the Laravel installer, and just autodetect the appropriate testing framework in the installers and Artisan make commands, instead of needing --pest flags, etc.

Copy link
Member

@nunomaduro nunomaduro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jessarcher I've improved the isUsingPest function.

@taylorotwell taylorotwell merged commit 7703a23 into 1.x Aug 8, 2023
@taylorotwell taylorotwell deleted the pest-detection branch August 8, 2023 14:04
@jessarcher
Copy link
Member Author

@nunomaduro Couldn't that class exist just because of another dependency?

I figured the safest way was to check whether the user had any Pest-specific files in their own project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants