Execute and test only one method with Laravel Dusk

When you are running Laravel Dusk tests from the terminal, with the command

$ php artisan dusk

sometimes you need to execute and test only one method. You can do it with the “–filter” parameter and the name of the method:

$ php artisan dusk --filter testUserInsertBlankSpacesAndThePasswordDoesNotChange

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.