You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we have just faced a bug in our application because we forgot to commit a transaction.
Our tests were green, and I'm wondering if the bundle should have warned us, or if at least should give us some sort of utility to assert that all beginTransaction has been followed with either a rollback or a commit.
Thank you
The text was updated successfully, but these errors were encountered:
if a test does not use the entity manager the value will be 0
if a test uses the entity manager we ensure that the only active level is the one that will be rolled back by your bundle
if the value is > 1 then we had a begin transaction in our code that has not been rolled back or committed (for example for us an early exit prevented it).
A small suggestion: you shouldn't do that in the tearDown method, but in the assertPostConditions method, which is the correct one, since it's executed just after the test method, and (more importantly) before the test outcome is finalized.
Hi, we have just faced a bug in our application because we forgot to commit a transaction.
Our tests were green, and I'm wondering if the bundle should have warned us, or if at least should give us some sort of utility to assert that all beginTransaction has been followed with either a rollback or a commit.
Thank you
The text was updated successfully, but these errors were encountered: