Can PostgreSQL support integration test with some kind of throwaway overlay?
5
votes
3
answers
1863
views
It's a common problem to write integration tests that include a database. If the test changes the database then it could effect other tests or the next run of itself.
I know that I could wrap my test in a transaction and rollback the transaction after the test run. But it would be very nice if PostgreSQL could provide some kind of global snapshoting or throwaway overlay. In an ideal case such a feature would cover all state of the database including schemas and stored procedures.
Asked by Thomas Koch
(151 rep)
Nov 12, 2013, 06:13 PM
Last activity: Dec 9, 2016, 10:45 AM
Last activity: Dec 9, 2016, 10:45 AM