[Zope3-Users] zope.testing question

Chris Withers chris at simplistix.co.uk
Mon Jun 1 08:05:47 EDT 2009


Kent Tenney wrote:
>> What are you looking to do with zope.testing? Develop it or write some tests
>> using it?
> 
> I don't know the first thing about it, just starting to read the doc.

If you're looking to test yourpackage, put the following in a 
buildout.cfg, in the same directory as bootstrap.py:

[buildout]
parts = test

[test]
recipe = zc.recipe.testrunner
eggs =
   yourpackage

Then do:

python bootstrap.py
bin/buildout

You can then run any tests in your package with:

bin/test

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope3-users mailing list