News for hackers. Stuff that matters.
Re:Pg_tmp – Run tests on an isolated, temporary PostgreSQL d... by rst on Monday April 26, 2021 @05:49PM (#26948672)
There are test frameworks which automate this behavior -- both Django and Rails provide test-case libraries which run each test in a transaction, and roll back to reset. (NB they also have to provide ways to disable this -- in order to, e.g., test application code which itself can conditionally roll back -- so both can also reset database state "the hard way", at a performance penalty.)

There are no comments on this comment yet.