[Zope-dev] Testrunner option for running tests in random order?!?
Marius Gedminas
marius at gedmin.as
Sat Oct 10 02:18:34 EDT 2009
On Fri, Oct 09, 2009 at 02:33:02PM +0200, Christian Theune wrote:
> On 10/08/2009 03:28 PM, Jonathan Ballet wrote:
> > I made a branch 'shuffle-tests', available on the Mercurial repository
> > at http://bitbucket.org/multani/zope.testing-shuffle/ , which adds two
> > new options:
> >
> > * --shuffle to randomize the order of the tests in a layer (layers
> > are not yet randomized, I didn't look at it yet);
> > * --shuffle-seed XXX, to initialize the RNG with a specific value,
> > which allows to reproduce a specific randomization of tests (inspired
> > by this thread http://lists.idyll.org/pipermail/testing-in-python/2009-April/001812.html
> > )
>
> Sounds right. It could even be folded into a single option:
>
> --shuffle[=XXX]
I doubt that. Ordinarily with the GNU long option style these two are
equivalent:
--shuffle=42
--shuffle 42
but there's no way to tell the second variant from a seed-less --shuffle
followed by an non-option argument.
Marius Gedminas
--
http://pov.lt/ -- Zope 3 consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20091010/46477159/attachment.bin
More information about the Zope-Dev
mailing list