Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Amir Haghi
Amir Haghi

Posted on

Run Laravel test multiple times

If your test fails in some rare cases and you want to see when it fails, you can write a bash script like this for run it over and over.

for i in {1..100}; do     php artisan test --filter test_something; done
Enter fullscreen modeExit fullscreen mode

It would be better to have this feature built in Laravel but currently I haven't seen it in the docs.

I know it was simple but when we do not code in bash every day, we cant remember its syntax. so consider this like a note to check it when it was required.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More fromAmir Haghi

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp