[Zope-Coders] Testing from an INSTANCE_HOME
Steve Alexander
steve@cat-box.net
Fri, 06 Jun 2003 21:27:19 +0300
> Does anyone see any holes in this plan? It might even open up some
> opportunities to speed up test initialization.
Sure. You could use a memory-based database.
The Zope 3 functional tests use DemoStorage, and set up a database with
basic services and a root folder. DemoStorage has a feature where you
can specify a base storage and a secondary storage. The secondary
storage is to store any changes to the base storage. This makes it easy
to remove all changes made by a particular tests, and restore the state
of the database, by resetting the secondary storage.
--
Steve Alexander