Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dusk:fails error with message The "pest" option does not exist. #920

Closed
SupianIDz opened this issue Sep 1, 2021 · 0 comments · Fixed by #921
Closed

dusk:fails error with message The "pest" option does not exist. #920

SupianIDz opened this issue Sep 1, 2021 · 0 comments · Fixed by #921
Labels

Comments

@SupianIDz
Copy link
Contributor

  • Dusk Version: 6.17.1
  • Laravel Version: 8.56.0
  • PHP Version: 8.0.10
  • Database Driver & Version: MySQL 8.0.26

Description:

According to the documentation running-test, to save testing time, I can use the php artisan dusk:fails command to rerun the test.

But when I run the command, I get the message The "pest" option does not exist. even though the pestphp/pest-plugin-laravel plugin is properly installed, and works fine when I run the command php artisan dusk --pest

Steps To Reproduce:

  1. composer create-project larave/laravel test
  2. cd test
  3. configure .env
  4. composer require --dev laravel/dusk
  5. php artisan dusk:install
  6. composer require --dev pestphp/pest-plugin-laravel
  7. php artisan pest:install
  8. php artisan dusk --pest
$this->browse(function (Browser $browser) {
    $browser
       ->visit('/')
       ->assertSee('Laravel');
});

1

and make the test an error

2

Then fix the test and run php artisan dusk:fails

and I get an error like this:

3

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

Successfully merging a pull request may close this issue.

2 participants