dataFresh: database rollback library for unit tests
Entropy’s dataFresh is a toolkit that assists test driven development projects in restoring their database to a known state before each test within a test fixture. The time consuming effort of having to write tear down methods to clean up the database after running your tests are a thing of the past.
Our appoach is unlike others as we do not attempt to rip and replace the entire database. Instead we track database modifications to the table level and only work with those tables that have been modified.
link






