Yes, sure... I should have done this in first place.<br><br>Thanks,<br>Hernan.<br><br><div class="gmail_quote">On Feb 12, 2008 3:14 AM, Jerome Peace &lt;<a href="mailto:peace_the_dreamer@yahoo.com">peace_the_dreamer@yahoo.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">SUnit with too many tests<br><br>Hi Hernan,<br><br>Thats great news. Would you be willing to plant this<br>
seed on mantis?<br><br>Here are the faq:<br><br>FAQ: Is this a known issue ? Where is the place to<br>report bugs (or check if<br>some have already been raised) ?<br><br>The best place for this info would be to start a<br>
Mantis report. (You can get a mantis acct freely and<br>easily).<br><br>A good place to start is:<br><br><a href="http://bugs.squeak.org/my_view_page.php" target="_blank">http://bugs.squeak.org/my_view_page.php</a><br><br>
Mantis provides a patient persistent way to focus on<br>an issue.<br>I use it to accumulate data on a problem until a<br>solution can be found.<br>It provides a place to alert the community to a<br>problem;<br>-accumulate facts and clues from the analysis;<br>
-publish proposed solutions and get feedback;<br>-get solutions harvested and included into the main<br>stream.<br><br>This FAQ is available at the Squeak wiki site.<br><a href="http://wiki.squeak.org/squeak/Mantis%20FAQ%20and%20Tips" target="_blank">http://wiki.squeak.org/squeak/Mantis%20FAQ%20and%20Tips</a><br>
aka:<br><a href="http://wiki.squeak.org/squeak/5912" target="_blank">http://wiki.squeak.org/squeak/5912</a><br>Mantis FAQ and Tips<br><br>Yours in service and curiosity, --Jerome Peace<br><br>***<br>&gt;Hernan Wilkinson hernan.wilkinson at <a href="http://gmail.com" target="_blank">gmail.com</a><br>
&gt;Mon Feb 11 16:59:11 UTC 2008<br>&gt;<br>&gt;Hi,<br>&gt; I just wanted to share with you that we had problems<br>running too many tests<br>&gt;with SUnit because of memory use.<br>&gt; We have around 15,000 unit tests and while running<br>
them the memory grew<br>&gt;from 80 megs to 700 megs (we use VisualAge) and<br>therefore, the machine<br>&gt;became really slow...<br>&gt; Anyway, we realized the memory was not freed because<br>the tests referenced<br>&gt;objects from their instance variables. Therefore we<br>
added a method that puts<br>&gt;&quot;nil&quot; in all test&#39;s instance variables (but<br>&#39;selector&#39;).<br>&gt; The amazing thing is that not only running the test<br>now do not makes the<br>&gt;image to grow but it takes 50% less time to run them!<br>
So anyway, we are<br>&gt;happy with that and maybe this change is useful to<br>other people.<br>&gt; Here is the code:<br>&gt;<br>&gt;TestCase&gt;&gt;runCase<br>&gt;<br>&gt; &nbsp; &nbsp;[self setUp.<br>&gt; &nbsp; &nbsp;self performTest] sunitEnsure: [self<br>
tearDown;cleanUpInstanceVariables]<br>&gt;<br>&gt;TestCase&gt;&gt;cleanUpInstanceVariables<br>&gt;<br>&gt; &nbsp; &nbsp;(TestCase allInstVarNames size + 1) to: self<br>class allInstVarNames size<br>&gt;do: [ :index | self instVarAt: index put: nil ]<br>
&gt;<br>&gt;<br>&gt;Bye,<br>&gt;Hernan.<br>***<br><div class="WgoR0d"><br><br><br><br> &nbsp; &nbsp; &nbsp;____________________________________________________________________________________<br>Looking for last minute shopping deals?<br>
Find them fast with Yahoo! Search. &nbsp;<a href="http://tools.search.yahoo.com/newsearch/category.php?category=shopping" target="_blank">http://tools.search.yahoo.com/newsearch/category.php?category=shopping</a><br><br></div>
</blockquote></div><br>