<div dir="ltr">Yep, I think that&#39;s what it was telling me.&nbsp; Either that or I&#39;m hungry :)<br><br><div class="gmail_quote">On Thu, Aug 14, 2008 at 7:04 PM, Zulq Alam <span dir="ltr">&lt;<a href="mailto:me@zulq.net">me@zulq.net</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;">Is your gut thinking something like this?<br>
<br>
 &nbsp;- A test fails<br>
 &nbsp;- You do something you believe fixes it<br>
 &nbsp;- The test passes when rerun in different sequence<br>
 &nbsp;- You move on without actually fixing the bug<br>
<br>
I think that simply rerunning the failed test after you believe you&#39;ve fixed the problem may not be sufficient because other tests may have modified the TestResource since the failure.<br>
<br>
For the shuffle to be useful you need to be lucky. Lucky enough that the sequence that was causing a test to pass incorrectly is broken. Then you need to be just as lucky to repeat the failing sequence.<br>
<br>
Z.<br>
<br>
David Pennell wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
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. <br>
-david<br>
<br></div><div class="Ih2E3d">
On Thu, Aug 14, 2008 at 11:12 AM, Brent Pinkney &lt;<a href="mailto:brent@zamail.co.za" target="_blank">brent@zamail.co.za</a> &lt;mailto:<a href="mailto:brent@zamail.co.za" target="_blank">brent@zamail.co.za</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;Hi,<br>
<br>
 &nbsp; &nbsp;I would like to propose an enhancement to SUnit:<br>
<br>
 &nbsp; &nbsp;Currently the order in which TestCase #test... methods are executed<br>
 &nbsp; &nbsp;by TestSuite is fixed.<br>
 &nbsp; &nbsp;This can cause dependencies to creep in if<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a) the TestCase class uses a TestResource and<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b) one #test.. method alters an aspect of the TestResource<br>
 &nbsp; &nbsp;that another #test... assumes is invariant.<br>
<br>
 &nbsp; &nbsp;By adding #shuffle to TestSuite &gt;&gt; run:, it is more likely that this<br>
 &nbsp; &nbsp;corruption is exposed.<br>
<br>
 &nbsp; &nbsp;viz.<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TestSuite &gt;&gt; run: aResult<br>
 &nbsp; &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; &nbsp; [ :each |<br>
 &nbsp; &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; &nbsp; each run: aResult ]<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !<br>
<br>
 &nbsp; &nbsp;Please comment and I will submit a fix.<br>
 &nbsp; &nbsp;PS. Who maintains SUnit ?<br>
<br>
 &nbsp; &nbsp;Brent<br>
<br>
<br>
 &nbsp; &nbsp;--<br>
 &nbsp; &nbsp;Brent<br>
<br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote></div><br></div>