Support the ongoing development of Laravel.io →
posted 10 years ago
Testing
Last updated 2 years ago.
0
php artisan migrate:refresh --seed // This will clean, migrate, then seed the db
phpunit // Run tests

If I understand correctly, you could run these two commands in the command line. I'm guessing you're looking for a solution to do it all within just calling phpunit, but I just do: alias phpu='php artisan migrate:refresh --seed; phpunit'.

Is this what you're looking for?

Last updated 2 years ago.
0

Is this what you're looking for ?

Ah yes, that's a good idea ! For some reason I felt obliged to do the refresh / migrations within phpunit, but it's much simpler this way indeed.

Thanks a lot.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

altitude altitude Joined 9 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.