[Zope-Coders] Testing from an INSTANCE_HOME
Shane Hathaway
shane@zope.com
Wed, 28 May 2003 11:58:00 -0400
Stefan H. Holek wrote:
> The test ZODB is only part of it. Besides that:
>
> - INSTANCE_HOME/lib/python must be added to sys.path
> - INSTANCE_HOME/Products must be added to Products.__path__
>
> I have implemented this feature for the testrunner and would highly
> appreciate any feedback you can give. Thanks in advance.
To be honest, your testrunner makes the problem more complicated. It
assumes that INSTANCE_HOME absolutely must be set to lib/python/Testing.
That is not the case. If the Testing package can use some other means
to tell Zope to use a special database instead of using the configured
database, Testing/__init__.py won't have to touch INSTANCE_HOME and Zope
will do all the INSTANCE_HOME magic as usual. testrunner shouldn't have
to know about INSTANCE_HOME.
Shane