I can't figure what does the MessageTally class?<br><br><div><span class="gmail_quote">On 1/17/06, <b class="gmail_sendername">stéphane ducasse</b> &lt;<a href="mailto:ducasse@iam.unibe.ch">ducasse@iam.unibe.ch</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Diego<br><br>I suggest you to have a look at the testrunner of lukas, Because it<br>is real fast and much more usable.
<br>Available in the latest 3.9<br><br>stef<br><br>On 17 janv. 06, at 15:12, Diego Fernandez wrote:<br><br>&gt; Thanks Lucas, I will try it.<br>&gt; Yesterday I started to do the code coverage tool using &quot;method<br>&gt; wrappers&quot;, it worked :)
<br>&gt;<br>&gt; But my unit tests of the coverage tool some times fails and some<br>&gt; times pass (I think that is caused by some initialization made by<br>&gt; the method wrappers).<br>&gt; Anyway.. I think that tomorrow I'm going to upload the first
<br>&gt; version of the package to SqueakMap.<br>&gt;<br>&gt; On 1/17/06, Lukas Renggli &lt; <a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt; wrote:&gt; Hi, is there<br>&gt; any tool to do code coverage? (at method level is enough, i
<br>&gt; &gt; want to do something to check that unit test cover all the methods)<br>&gt;<br>&gt; You might want to try something like that in any Squeak image:<br>&gt;<br>&gt; tallies := IdentityDictionary new.<br>&gt; prev := [ MAFileModelTest suite run ].
<br>&gt; thisContext sender<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; runSimulated: prev<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contextAtEachStep: [ :curr |<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; curr == prev ifFalse: [<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (tallies<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at: curr receiver
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ifAbsentPut: [ Set new ])<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add: curr selector ].<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; prev := curr ] ].<br>&gt;<br>&gt; There are some bugs in the simulator that prevent you from running
<br>&gt; tests&nbsp;&nbsp;that containing #should:raise: and #shouldnt:raise:, else this<br>&gt; technique works very well and requires no additional package.<br>&gt;<br>&gt; Lukas<br>&gt;<br>&gt; --<br>&gt; Lukas Renggli<br>&gt; <a href="http://www.lukas-renggli.ch">
http://www.lukas-renggli.ch</a><br>&gt;<br>&gt;<br>&gt;<br><br><br></blockquote></div><br>