[Zope-CMF] unit test weirdness.

Chris Withers chrisw@nipltd.com
Thu, 20 Feb 2003 11:09:49 +0000


Lennart Regebro wrote:
> I noticed a thing I don't really understand with the CMF unit tests.
> 
> If I run
>    python utilities/testrunner.py -d ./lib/python/Products/CMFCore
> The unit tests all fail, mostly because of import errors.
> 
> However, if I run
>    python utilities/testrunner.py -d ./lib/python/Products
> the CMFCore tests are successfully run. The same goes for CMFCalendar, 
> CMFDefault

That's because neither of those is the canonical way of running CMF unit tests.

They should be run using:

python all_cmf_tests.py [-q]

...from your Products directory.

cheers,

Chris