|
|
|
|
|
by dns_snek
841 days ago
|
|
> Also very nice with databases. Spin up a clean db, run migrations, then test db code with zero worries about accidentally leaving stuff in a table that poisons other tests. Are you spinning up a new instance between every test case? Because that sounds painfully slow. I would just define a function which DELETEs all the data and call it between every test. |
|
Can only speak for the Golang version of the lib, but spinning up new instances was surprisingly quick.