Keep database state after failed test

That’s some nice info, but I don’t think it helps. Because nothing in there is about commiting the transaction.

I think the easiest way to do this (for sqlite), if anyone is interested:

  1. remove use Module.DataCase from your test
  2. add something like @tag :single to the test you want to run
  3. run the test with mix test --only single
  4. don’t forget to delete the test database after you’re done and add the DataCase again.