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

eskiesirius's avatar

Large App Testing

What are your ways on testing large apps(100+ migrations)? Do you preserve the data until the tests are finished(there are tests that are dependent to the other tests) or every test you need to remove the data?

0 likes
4 replies
Sinnbeck's avatar

I migrate once and seed the data I need for each test and let laravel roll back after each test. I believe this is the default now I think

Also a test should never be dependent on another test. If it is you should rewrite it

Please or to participate in this conversation.