[Zope-dev] Re: buildout "tests_require" analogue

Wichert Akkerman wichert at wiggy.net
Thu Nov 15 11:31:40 EST 2007


Previously Fred Drake wrote:
> On Nov 15, 2007 9:35 AM, Tres Seaver <tseaver at palladion.com> wrote:
> >  - Making sure that the tests can psss for somebody who is not a
> >    core Zope developer, (and therefore who doesn't know about
> >    zc.buildout, or want to).  E.g.:
> >
> >     $ /path/to/python setup.py develop
> >     $ /path/to/python setup.py test
> 
> How many people actually use "setup.py test" for a package they aren't
> developing?
> 
> Generally, when I download a package, I don't expect to know a priori
> how to run the tests.  Given the number of testing frameworks and
> tools commonly used for Python these days (nose, trial, py.test,
> etc.), I'm certainly not going to assume that the setuptools solution
> was chosen.

nose hooks perfectly in setup.py test. In fact I generally run nose that
way. It should be possible to hook the zope testrunner into the setup.py
test_suite hook as well.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Zope-Dev mailing list