Re: Current state of packaging Python software for Debian
- To: Barry Warsaw <barry@python.org>
- Cc: debian-python@lists.debian.org
- Subject: Re: Current state of packaging Python software for Debian
- From: Robert Collins <robertc@robertcollins.net>
- Date: Mon, 4 Jul 2011 08:20:37 +1200
- Message-id: <CAJ3HoZ1mOqYGcMfn0Lf514dBmmuBOD5GL78=mVFrewqXvsCXzQ@mail.gmail.com>
- In-reply-to: <20110701150710.0013a96d@snowdog>
- References: <20110607161023.2c9b9abf@limelight.wooz.org> <20110607213953.GG24922@piotro.eu> <4DF0E139.6050802@bzed.de> <20110609134031.5f7a04a6@neurotica.wooz.org> <BANLkTimBeyd1XxGGYmdF_Z-oqbjzMcWm0g@mail.gmail.com> <20110610162040.416a30b6@neurotica.wooz.org> <87aadku6rp.fsf_-_@benfinney.id.au> <20110614073921.50841499@neurotica.wooz.org> <1308059073.18675.342.camel@pi0307572> <20110614104547.239fe6d1@neurotica.wooz.org> <4DF783E6.8080706@canonical.com> <20110614180404.60605bbe@neurotica.wooz.org> <4DF8CAB9.8040405@netwok.org> <20110701150710.0013a96d@snowdog>
On Sat, Jul 2, 2011 at 2:07 AM, Barry Warsaw <barry@python.org> wrote:
>>In some sub-communities, py.test or nosetests are the standard, not
>>setup.py test.
>
> Yes, but if I understand where Michael is taking unittest2, those can just be
> refactored to be plugins instead of separate standards. Then `python setup.py
> test` can be the preferred and documented standards, while allowing those
> other command lines to also exist.
unittest2 is still a unittest runner at heart; the basic model is
sound to scale up to N processes and so forth (see tox or
testrespository for instance), but compatibility with arbitrary ways
of running is pretty tricky. See for instance the guts of the
following three runners: trial, django and zc.testing.testrunner.
All I'm saying is don't hold your breath: those communities could have
plugged into the original unittest compatibly but didn't - I think it
needs to be massively more clear *how* to do so, and on older Pythons
for those communities - they don't live on the edge ;) - for
one-runner-with-plugins to reach that point.
As a data point, in the java world multiple runners is still the case,
with some common interop on output format.
-Rob
Reply to: