how to run zope 2.9 testrunner ?
Hi all, I would appreciate it if someone would post a transcript of running product tests with the Zope 2.9 testrunner. Thanks -Simon
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Simon Michael wrote:
I would appreciate it if someone would post a transcript of running product tests with the Zope 2.9 testrunner.
- From an instance home: $ cd projects/CMF/cmf_test/z29_cmfhead/ $ bin/zopectl test -m Products.CMFCore Running tests via: /home/tseaver/projects/Zope-CVS/Zope-2_9-branch/../bin/python2.4 /home/tseaver/projects/Zope-CVS/Zope-2_9-branch/test.py -v --config-file /home/tseaver/projects/CMF/cmf_test/z29_cmfhead/etc/zope.conf -m Products.CMFCore Parsing /home/tseaver/projects/CMF/cmf_test/z29_cmfhead/etc/zope.conf Running tests at level 1 /home/tseaver/projects/Zope-CVS/Zope-2_9-branch/lib/python/OFS/Application.py:598: DeprecationWarning: The zLOG package is deprecated and will be removed in Zope 2.11. Use the Python logging module instead. ('New disk product detected, determining if we need ' Running unit tests: Running: .................................................. .................................................. etc. Without the '-m Products.CMFCore', it would run tests for all products in the instance home. Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD6n7i+gerLs4ltQ4RAlTKAKCE1BzRINmBHAK3Ku0vjFKFCi0KwACeIepj dA2vDx2buar0VXWN+Y0sM+Y= =s04l -----END PGP SIGNATURE-----
Thanks.. that doesn't work for me, ideas anyone ? /zope2$ bin/zopectl test /zope2.9/lib/python/App/ImageFile.py:21: DeprecationWarning: Using OFS.content_types is deprecated (will be re\moved in Zope 2.11). Instead use zope.app.contenttypes. from OFS.content_types import guess_content_type Traceback (most recent call last): File "/zope2.9/lib/python/Zope2/Startup/zopectl.py", line 316, in ? main() File "/zope2.9/lib/python/Zope2/Startup/zopectl.py", line 277, in main c.onecmd(" ".join(options.args)) File "/usr/lib/python2.3/cmd.py", line 210, in onecmd return func(arg) File "/zope2.9/lib/python/Zope2/Startup/zopectl.py", line 243, in do_test assert os.path.exists(script) AssertionError /zope2$ echo $PYTHONPATH /zope2:/zope2.9/lib/python /zope2$
I got it working by copying $ZOPE_SRC/test.py to $SOFTWARE_HOME/bin. make install doesn't do this - it seems http://www.zope.org/Collectors/Zope/1989 was overlooked. Your example got me there, thanks a lot.
participants (2)
-
Simon Michael -
Tres Seaver