Re: Is it possible to write tests that delete ONLY the data they create?

"Lothar Kimmeringer [email protected] [junit]" <[email protected]> Mon, 12 Sep 2016 23:54:43 +0200
Newsgroups gmane.comp.java.junit.user
Message-ID <[email protected]>
Hi,

Am 12.09.2016 um 17:59 schrieb [email protected] [junit]:
>
> I'd like to be able to run some tests against fully populated QA databases. I
>  can't find the right combination of set-up and tear-down to erase ALL the data
>  created and inserted in the course of the test but not delete other data that
>  preexists in the Db.

Create a new database/scheme and copy all data from the QA-database to your
new one. After the test, simply delete the database/scheme.

Another solution is to use virtualization. Fire up a guest that is
configured to be rolled back to the state it was before when shut down.


Cheers, Lothar


------------------------------------
Posted by: Lothar Kimmeringer <[email protected]>
------------------------------------