oracle - database restore to particular state for testing -


we use oracle(or postgres) database , application server execute integration tests. isolate each test 1 , database schema dropped , re-created before each test.

as see time taking process. application uses 100+ tables. thinking of writing custom sql delete unwanted data each tables. there better way save , restore database state?

( appears dbunit this, have not tried yet. )

a single test involves:

  • create database schema.
  • start app server.
  • start multiple client applications.
  • execute , verify.

we have 5000 odd tests, taking 700 hours or so. (we on grid environment, finishes overnight)

most of tests uses small data sizes, 10 mb.

oracle flashback allows restore table @ specified time point using simple sql query. documentation available here.

i don't know if postgre has similar feature.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -