Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
geophile
8y ago
0 comments
Share
That only works if the code you are testing does everything in auto-commit mode. Which is often a terrible idea. If your code uses transactions, then no, the framework cannot rely on rollback to do setup and teardown.
undefined | Better HN
0 comments
default
newest
oldest
brianwawok
8y ago
I use django with transactions and tests work fine. I think a transaction within a transaction is treated as a checkpoint.
afarrell
8y ago
Tests with transactions works fine in rails/rspec.
j
/
k
navigate · click thread line to collapse