[Zope-Coders] Testing from an INSTANCE_HOME
Shane Hathaway
shane@zope.com
Fri, 06 Jun 2003 14:36:50 -0400
Steve Alexander wrote:
>> 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.
Right, that's what we're doing now.
> 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.
Yes, the Testing package used to do this, but something went wrong with
the strategy (I don't remember what.) We need to try it again.
Shane