mg-freelancer's avatar

DatabaseMigrations is too slow for each test, how to fix ?

When I run phpunit testing it takes long time to complete process because of migrations and seed, so how to fix this problem ?

0 likes
4 replies
dmreinoso's avatar

Are you using a real database por unit testing? If so, you should use SQLite in memory. This will speed the process.

robrogers3's avatar

@MG-FREELANCER how slow is slow.

also, why are you running all of your seeders before each test.

Please or to participate in this conversation.