3 ms·
I still think that tests would be flaky without complete isolation in a different database instances. Transaction isolation is nice, but for serial isolation yo
by vbezhenar 5y ago
I still think that tests would be flaky without complete isolation in a different database instances. Transaction isolation is nice, but for serial isolation you would get errors when you can't commit that transaction and you'll need to repeat the test (which might cause further issues) and for lesser isolation levels you would get some phantom reads which might manifest as a rare test failures which is a terrible thing, because you can't reproduce it.
- bpicolo 5y agoThat's the best part - tests never commit data. Everything that happens is within the transaction, and only visible to that test. It doesn't let you test interactions of parallelized code doing independent/interacting database workloads, but most web/CRUD apps don't do that.