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

cwhite's avatar
Level 19

LazilyResetDatabase vs. DatabaseTransactions Traits

Hello,

I've read that LazilyResetDatabase only resets your DB if a test touches the DB, but does it run through the full migration/seed process every time? Or does it only play the test in a transaction block (I thought I read it might somewhere).

I'm currently using DatabaseTransactions because the migration/seed process takes almost a minute... Is there any difference between the two traits or do they do the same thing?

Thanks!

0 likes
0 replies

Please or to participate in this conversation.