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> <<a href="mailto:ducasse@iam.unibe.ch">ducasse@iam.unibe.ch</a>> 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>> Thanks Lucas, I will try it.<br>> Yesterday I started to do the code coverage tool using "method<br>> wrappers", it worked :)
<br>><br>> But my unit tests of the coverage tool some times fails and some<br>> times pass (I think that is caused by some initialization made by<br>> the method wrappers).<br>> Anyway.. I think that tomorrow I'm going to upload the first
<br>> version of the package to SqueakMap.<br>><br>> On 1/17/06, Lukas Renggli < <a href="mailto:renggli@gmail.com">renggli@gmail.com</a>> wrote:> Hi, is there<br>> any tool to do code coverage? (at method level is enough, i
<br>> > want to do something to check that unit test cover all the methods)<br>><br>> You might want to try something like that in any Squeak image:<br>><br>> tallies := IdentityDictionary new.<br>> prev := [ MAFileModelTest suite run ].
<br>> thisContext sender<br>> runSimulated: prev<br>> contextAtEachStep: [ :curr |<br>> curr == prev ifFalse: [<br>> (tallies<br>> at: curr receiver
<br>> ifAbsentPut: [ Set new ])<br>> add: curr selector ].<br>> prev := curr ] ].<br>><br>> There are some bugs in the simulator that prevent you from running
<br>> tests that containing #should:raise: and #shouldnt:raise:, else this<br>> technique works very well and requires no additional package.<br>><br>> Lukas<br>><br>> --<br>> Lukas Renggli<br>> <a href="http://www.lukas-renggli.ch">
http://www.lukas-renggli.ch</a><br>><br>><br>><br><br><br></blockquote></div><br>