|
|
|
|
|
by gregplaysguitar
1678 days ago
|
|
> write _all_ your tests without ever having to truncate/delete tables between tests This is exactly what we do, and it works really well. We essentially spin up a new tenant for each test suite. Forcing all tests to pass regardless of what other unrelated data is in the db is a great way to ensure cross-tenant data isolation. The other underrated benefit is that you don't need a separate test database for local development - local dev instance and tests can use the same db. This means you can work on db changes in one place and see their impact on both tests and the running application. |
|