[Newbies] [on] Looking for simple test coverage tool
oscar.nierstrasz at gmail.com
Mon Mar 30 13:50:40 UTC 2009
So, this works, after loading the ObjectAsMethodWrapper project:
| w tr |
category := 'SCGPier'.
w := (ObjectAsOneTimeMethodWrapper installOnClassCategory: category).
tr := TestRunner new.
ToolBuilder open: tr.
categoryAt: (tr categoryList indexOf: category) put: true;
((w select: [:each | each executed not ])
collect: [:each | each wrappedClass name, '>>', each selector
name ]) explore.
w do: [:each| each uninstall ].
It opens an explorer on all the names of the not executed methods of
the selected category.
On Mar 30, 2009, at 11:57, Markus Gaelli wrote:
> Hi Oscar
> you might want to have a look at
> Am 30.03.2009 um 11:09 schrieb Oscar Nierstrasz:
>> I just want to find out for a package which methods are being
>> exercised by the test cases and which aren't.
>> I seems like most of the infrastructure is already around (eg in
>> TimeProfileBrowser) but I do not see where to start with coverage.
>> Does anyone have any suggestions?
>> (Of course I am looking at Christo again, but it seems rather
>> heavyweight for my needs.)
>> - on
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
More information about the Beginners