Resources for zope testing.

Running unit tests

The hardest thing about Zope unit tests is running them. It is the blackest of black arts. Of the above, only ZopeThree:RunningUnitTests tackles this. Your best bet as of 2004/04 is probably to wrestle with Zope-2.7.0/test.py.

Until you get lucky. Here are recipes that worked for me (using the SimpleDirectoryLayout):

run test file directly
SOFTWARE_HOME=/zope/lib/python INSTANCE_HOME=/zope1 PYTHONPATH=/zope/lib/python python tests/testAdmin.py

run test file using old testrunner.py --

run test file using Zope 2.7 test.py --


(1 subscribers)