[squeak-dev] ENH: SUnit - shuffling the order tests are executed
in
David Pennell
pennell.david at gmail.com
Thu Aug 14 22:59:14 UTC 2008
I like the ability to shuffle the test order, but I think this should be a
preference and that you should be able to re-run the same exact test
sequence.
I can't give you a crisp reason, but my gut tells me that you will want a
way to re-run the same test sequence when things go strange.
-david
On Thu, Aug 14, 2008 at 11:12 AM, Brent Pinkney <brent at zamail.co.za> wrote:
> Hi,
>
> I would like to propose an enhancement to SUnit:
>
> Currently the order in which TestCase #test... methods are executed by
> TestSuite is fixed.
> This can cause dependencies to creep in if
> a) the TestCase class uses a TestResource and
> b) one #test.. method alters an aspect of the TestResource that
> another #test... assumes is invariant.
>
> By adding #shuffle to TestSuite >> run:, it is more likely that this
> corruption is exposed.
>
> viz.
> TestSuite >> run: aResult
> self tests shuffled do:
> [ :each |
> self changed: each.
> each run: aResult ]
> !
>
> Please comment and I will submit a fix.
> PS. Who maintains SUnit ?
>
> Brent
>
>
> --
> Brent
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080814/31207c7a/attachment.htm
More information about the Squeak-dev
mailing list
|