2 Comments

  1. Ahmed Waleed

    Very nice article thank you. But i have one question you are dumping db structure into sql file is it because migrating database from dumped file is faster then migrating from laravel migration classes ?

    • Yes, when running Dusk you need to use database migrations (cannot use database transactions) what means each time before single test all migrations are run. In my solution only single migration is run that just loads dump to database using DB::unprepared what is much quicker when you have more migrations

Leave a Reply

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

*