This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rbcollins
Recipients asvetlov, azsorkin, ezio.melotti, giampaolo.rodola, gvanrossum, michael.foord, pconnell, pitrou, rbcollins, serhiy.storchaka
Date 2015-08-23.23:59:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440374373.7.0.140516844014.issue17908@psf.upfronthosting.co.za>
In-reply-to
Content
"say, something to run a test until failure, or to
watch for reference leaks, or to run tests in multiple processes :-))"

I think a few complimentary things.

unittest extensability currently requires a new CLI entry point for each thing. I'd like to fix that.

The actual plumbing is fairly extensible, though its not always obvious. I'd like to fix that too - without any global state getting involved.

Of the things you mention, running a given command line until failure and checking for reference leaks are both straight forward, very common requests (as is the gc check) and I'd like to see those implemented as extensions shipped in the stdlib.

Running in parallel becomes important when one is doing slow (e.g. functional) tests with unittest, and I think thats important to support. It is however much harder to do well: some of the current idioms that have snuck in (like the handling of stdout/stderr capturing without the buffer flag) are not well matched to the needs of reporting on concurrent tests to users. I'm not in any way opposed to a good implementation, but it would need to be good I think - there's not much point having a poor implementation, given the rich set of parallel test runners that are out there that already build on the unittest core (green, nose, testrepository just for starters). The only unique audience for stdlib test facilities is the stdlib itself and I think a better way to solve that is to enable the use of alternative runners for our own tests (moving them to be a little cleaner should enable that) - and then the point where it matters is really 'when buildbots would be enough faster to make a difference'.
History
Date User Action Args
2015-08-23 23:59:33rbcollinssetrecipients: + rbcollins, gvanrossum, pitrou, giampaolo.rodola, ezio.melotti, michael.foord, asvetlov, serhiy.storchaka, pconnell, azsorkin
2015-08-23 23:59:33rbcollinssetmessageid: <1440374373.7.0.140516844014.issue17908@psf.upfronthosting.co.za>
2015-08-23 23:59:33rbcollinslinkissue17908 messages
2015-08-23 23:59:33rbcollinscreate