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 <<a href="mailto:peace_the_dreamer@yahoo.com">peace_the_dreamer@yahoo.com</a>> 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>>Hernan Wilkinson hernan.wilkinson at <a href="http://gmail.com" target="_blank">gmail.com</a><br>
>Mon Feb 11 16:59:11 UTC 2008<br>><br>>Hi,<br>> I just wanted to share with you that we had problems<br>running too many tests<br>>with SUnit because of memory use.<br>> We have around 15,000 unit tests and while running<br>
them the memory grew<br>>from 80 megs to 700 megs (we use VisualAge) and<br>therefore, the machine<br>>became really slow...<br>> Anyway, we realized the memory was not freed because<br>the tests referenced<br>>objects from their instance variables. Therefore we<br>
added a method that puts<br>>"nil" in all test's instance variables (but<br>'selector').<br>> The amazing thing is that not only running the test<br>now do not makes the<br>>image to grow but it takes 50% less time to run them!<br>
So anyway, we are<br>>happy with that and maybe this change is useful to<br>other people.<br>> Here is the code:<br>><br>>TestCase>>runCase<br>><br>> [self setUp.<br>> self performTest] sunitEnsure: [self<br>
tearDown;cleanUpInstanceVariables]<br>><br>>TestCase>>cleanUpInstanceVariables<br>><br>> (TestCase allInstVarNames size + 1) to: self<br>class allInstVarNames size<br>>do: [ :index | self instVarAt: index put: nil ]<br>
><br>><br>>Bye,<br>>Hernan.<br>***<br><div class="WgoR0d"><br><br><br><br> ____________________________________________________________________________________<br>Looking for last minute shopping deals?<br>
Find them fast with Yahoo! Search. <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>