Summer Sale! All accounts are 50% off this week.

shahabes's avatar

Run all dusk tests with php artisan dusk

I created some browser test cases using Laravel Dusk. So, when I try to run all test cases, only one test cases ran, the testBasicExample. So, how can I run all other test cases with one command?

0 likes
2 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Are you sure that all of your test methods start with the word test? Like test_foo().

And the classes should end with Test. Like LoginTest.php

1 like
shahabes's avatar

@Sinnbeck Thanks, the problem was with the name of my test classes. I forgot to add the test postfix.

Please or to participate in this conversation.