[z3-five] Re: getting the tests to run
Martijn Faassen
faassen at infrae.com
Fri Aug 27 20:44:22 MEST 2004
Tres Seaver wrote:
> Martijn Faassen wrote:
>
>> Tres Seaver wrote:
>>
>>> Do you have a document describing how you expect the tests to be run?
>>
>> Have you looked at README.txt in the tests directory? The system makes
>> use of ZopeTestCase and requires the FiveTest product to be installed.
>> I do not think things will run with other test runners than
>> runalltests.py. From your experiments it looks like you're trying to
>> use a different test framework altogether.
>
> I'm trying to use Zope's test.py. No matter, I will try running
> 'runalltests.py' directly instead.
>
>> I'm used to ZopeTestCase, which is heavily used by Plone and Silva
>> among other projects.
>>
>> Anyway, what should be enough is setting INSTANCE_HOME, SOFTWARE_HOME,
>> and PYTHONPATH (to include Zope 3, or alternatively set it in your
>> zope.conf), and then:
>>
>> python2.3 runalltests.py
>
> OK, here is what I have done now:
>
> $ cd $INSTANCE_HOME/Products
> $ ln -s Five/tests/products/FiveTest .
> $ cd $INSTANCE_HOME
> $ PYTHONPATH="$SOFTWARE_HOME:$INSTANCE_HOME/lib/python" \
> $PROJECT/bin/python Products/Five/tests/runnalltests.py
> SOFTWARE_HOME: /home/tseaver/projects/fivetest/lib/zope2.7/lib/python
> INSTANCE_HOME: /home/tseaver/projects/fivetest/var/appserver
> Installing FiveTest ... done (0.266s)
> Installing Five ... done (0.876s)
> Installing PythonScripts ... done (0.015s)
> ...EEE..............EEE....
Better, at least. :)
[snip ConflictError]
> Is it not possible to run ZopeTestCase tests in an instance which uses
> ZEO? That seems undesirable, to say the least.
I don't know; it's quite possible that this isn't possible, as
ZopeTestCase uses ZODB-level trickery to speed up the running of tests
while keeping as much of the Zope environment around while it runs. You
should take this up with Stefan Holek, the ZopeTestCase developer. From
glancing at the README of ZopeTestCase there is a claim that ZEO ought
to work using ZEO_INSTANCE_HOME, so perhaps there's a way.
Stefan Holek's page (with contact info) is here: http://zope.org/Members/shh
Regards,
Martijn
More information about the z3-five
mailing list