On Sun, Jun 27, 2010 at 7:11 PM, Alexandre Bergel
<alexandre@bergel.eu> wrote:
> The problem is that I don't really know if the method I've changed has been actually "hit" by the tests. I just see that tests has been run. I don't know if my method has been called when running the tests.
>
> So I want to detect this.
>
> One way of doing this seems to use MethodContext>>runSimulated:contextAtEachStep:. I've found this looking at MessageTally. Is it the best solution ?
If you know exactly which compiled method you are interested in, I would wrap it using a plain object that answers to #run:with:in:
This is a feature supported which is supported for quite some time by the VM.
Info on http://www.iam.unibe.ch/~scg/Archive/Papers/Bergel06bRDLPrototyping.pdf , Section 2.2
Thank you, it's cool to learn so sexy stuff :) Should be in Pharo book.
Laurent
��
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel ��http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.