[squeak-dev] Looking for a code coverage tool

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Looking for a code coverage tool

stephane ducasse
Hi all

I would like to run the tests and see which methods are covered.
I know that christo was used to work but does anybody use it recently?
Is there another code coverage tool available?

Stef

Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: Looking for a code coverage tool

Klaus D. Witzel
On Tue, 15 Jul 2008 11:20:35 +0200, stephane ducasse wrote:

> Hi all
>
> I would like to run the tests and see which methods are covered.
> I know that christo was used to work but does anybody use it recently?
> Is there another code coverage tool available?

It is perhaps possible to use Goya for that (package on SqM, a VM mod),  
though I didn't polish it since VM 3.7-x.

With Goya I colored test methods #test and the rest of the world #reached,  
run the tests and report #reached methods which where effectively called  
by #test methods (a query which ignores the #test->#test,  
#reached->#reached and the not reached combinations).

It does not record nor analyze which part of code in methods is covered  
(the classical coverage task which Christo does).

Goya mods the VM (must make/build it), but nowdays the same can be  
achieved with Reflectivity's power on any Squeak platform ;)

/Klaus

> Stef
>
>