[TIP] public nose test suites?

holger krekel holger at merlinux.eu
Wed Aug 19 09:56:20 PDT 2009


Hey Kumar, 

On Fri, Aug 07, 2009 at 11:30 -0500, Kumar McMillan wrote:
> On Fri, Aug 7, 2009 at 6:45 AM, holger krekel<holger at merlinux.eu> wrote:
> > Hi all,
> >
> > i am currently playing a bit with a pytest_nose plugin that makes
> > it easier to run nose test suites with py.test - part of
> > an effort to converge in some ways, also serves me to
> > understand the differences better.  Can some people here
> > point me to some self-contained public repos, URLs or
> > tarballs that i just need to unpack and can run "nosetests"
> > 0.11.1 successfully on?
> 
> Holger, this sounds really cool.  I'd love to be able to use the
> distributed and multi-python-version features of py.test with some of
> my nose based suites.
> 
> I could only think of one project of mine that you could check out and
> run nosetests in without dealing with any dependencies:
> http://bitbucket.org/kumar303/fudge/
> (should run 136 tests)

fudge tests should work fine now with 1.0.1, just run
"py.test" after install :)  

And here is how i distributed to three different platforms and
three different python interpreters in a single run: 

py.test -v --tx socket=192.168.1.106:8888 \
           --tx ssh=noco//python=/usr/local/bin/python2.4 \
           --tx popen \
           --dist=each --rsyncdir=fudge \
           --rsyncdir=../nose/nose # a nose checkout :) \
           --pastebin=all  

which results in: 

    http://paste.pocoo.org/show/135233/

Of course you can put the options into a conftest.py
(see "customize" on http://pytest.org) or a shell helper. 

cheers,

holger



More information about the testing-in-python mailing list