Thanks Stef,
I'll look at MethodWrapper tomorrow morning!
In short all I need to do is intercept a set of messages and do something (e.g., log)
without touching the original implementation.
I thought that Spy could have done the job, right?
Cheers,
Roby
On Mar 24, 2013, at 9:44 PM, stephane ducasse <stephane.ducasse(a)free.fr>
wrote:
Do not reinvent the wheel.
MethodWrapper should work on Pharo else we should fix them.
They should be published on SmalltalkHub
Then Spy should work or another spying framework because Alex is using them.
So let us know so that we can take actions.
Stef
Hi,
I'm was exploring some methods to build method wrappers and I discovered Spy.
Unfortunately the sample code provided on
http://www.moosetechnology.org/tools/Spy does
not run.
When you reach this point
You can simply invoke it with:
| packageSpy |
packageSpy := DemoTestCoveragePackageSpy runTestAndGatherForPackageNamed:
'Mondrian'.
There is no "DemoTestCoveragePackageSpy" yet.
Afterward this class is defined but still there is no message
"runTestAndGatherForPackageNamed".
Any hep would be appreciated.
Thanks in advance,
Roberto
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev