[z3-five] Re: getting the tests to run
Tres Seaver
tseaver at zope.com
Fri Aug 27 18:22:22 MEST 2004
Martijn Faassen wrote:
> Martijn Faassen wrote:
>
>> I'm trying to get the tests to run on the trunk.
>
>
> [snip]
>
>> If I'm not doing something wrong and the tests are indeed left in this
>> sorry state, I'm pretty disappointed.
>
>
> Excluding the 2.7.2 hurdle, which was unexpected incompatibility, I
> *was* indeed doing something wrong. I created a fresh Zope 2.7.2
> instance and my problem went away. So I suddenly realized my zope.conf
> had a reference to *another* Zope 3 in my original instance, and I
> thought I had it set up right through the PYTHONPATH.
>
> Now everything works but for the deprecation warning issue, which does
> need to be resolved.
>
> Sorry Sidnei for the false alarm.
Do you have a document describing how you expect the tests to be run?
Here is what I am trying (using the 'tseaver-bride' branch, checked out
into $INSTANCE_HOME/Products/Five; Zope is 2.7.2, unpacked into
$PROJECT/lib/zope2.7 and made inplace):
$ export PROJECT="/home/tseaver/projects/fivetest"
$ export SOFTWARE_HOME="$PROJECT/lib/zope2.7/lib/python"
$ export INSTANCE_HOME="$PROJECT/var/appserver"
$ cd $INSTANCE_HOME
$ PYTHONPATH="$SOFTWARE_HOME" \
$PROJECT/bin/python $PROJECT/bin/test.py Products.Five
Running unit tests from /home/tseaver/projects/fivetest/var/appserver
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
I also tried driving the tests via zopectl (with none of that
environment setup):
$ cd /home/tseaver/projects/fivetest/var/appserver/
$ bin/zopectl run Products/Five/tests/runalltests.py
Traceback (most recent call last):
File "<string>", line 1, in ?
File "Products/Five/tests/runalltests.py", line 13, in ?
execfile(os.path.join(sys.path[0], 'framework.py'))
IOError: [Errno 2] No such file or directory:
'/home/tseaver/projects/fivetest/lib/python/framework.py'
Tres.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
More information about the z3-five
mailing list