[Zope-Coders] CMF tests

Tres Seaver tseaver@zope.com
Fri, 21 Dec 2001 10:18:58 -0500


Chris Withers wrote:

> Would it be possible to have the tests results from the HEAD of the CMF
> repository mailed here as well?
> 
> I've been trying to get stuck into some CMF work, but I can't get the tests to
> pass.
> 
>>From looking at the CMF test suite, it's in some pretty dire need of
> refactoring, particularly  with the variety of test users used in the various
> suites.
> 
> I had a stab at factoring out a base.py for the tests, but since I couldn't get
> the tests to run anyway, I didn't exactly have a lot of confidence in what i was
> doing ;-)


Here is how I run the tests w/o zctl:

   $ export INSTANCE_HOME=/home/tseaver/projects/cmf_test
   $ export SOFTWARE_HOME=/usr/local/zope/Zope-2.4-head
   $ export PYTHONPATH=$SOFTWARE_HOME
   $ export ZEO_SERVER_PORT=9001 # my 'custom_zodb.py' need this
   $ /usr/local/bin/python2.1 $INSTANCE_HOME/all_cmf_tests.py

and they all pass.  The equivalent batch file syntax is left as
an exercise for the reader. :)

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com