<div dir="ltr">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.<br>I can&#39;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.&nbsp; <br>
<br>-david<br><br><div class="gmail_quote">On Thu, Aug 14, 2008 at 11:12 AM, Brent Pinkney <span dir="ltr">&lt;<a href="mailto:brent@zamail.co.za">brent@zamail.co.za</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I would like to propose an enhancement to SUnit:<br>
<br>
Currently the order in which TestCase #test... methods are executed by TestSuite is fixed.<br>
This can cause dependencies to creep in if<br>
 &nbsp; &nbsp; &nbsp; &nbsp;a) the TestCase class uses a TestResource and<br>
 &nbsp; &nbsp; &nbsp; &nbsp;b) one #test.. method alters an aspect of the TestResource that another #test... assumes is invariant.<br>
<br>
By adding #shuffle to TestSuite &gt;&gt; run:, it is more likely that this corruption is exposed.<br>
<br>
viz.<br>
 &nbsp; &nbsp; &nbsp; &nbsp;TestSuite &gt;&gt; run: aResult<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;self tests shuffled do:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ :each |<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;self changed: each.<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;each run: aResult ]<br>
 &nbsp; &nbsp; &nbsp; &nbsp;!<br>
<br>
Please comment and I will submit a fix.<br>
PS. Who maintains SUnit ?<br>
<br>
Brent<br>
<br>
<br>
--<br>
<font color="#888888">Brent<br>
<br>
</font></blockquote></div><br></div>