SUnit improvements easystart
Keith Hodges
keith_hodges at yahoo.co.uk
Thu Dec 21 09:00:37 UTC 2006
Klaus D. Witzel wrote:
> Hi Keith,
>
> if I need to know such non-obtrusively I often try SomeThing
> someInstance (and friends, like instanceCount before/after). Or
> perhaps ask #setUp, like it is used in ArbitraryObjectSocketTestCase,
> if it uses Socket.
>
> HTH.
>
> /Klaus
Thanks Klaus,
rather than using instanceCount, I used the approach within instance
count. I keep track of the last of the instances such that (last
someInstance == nil). After the test I check to see whether (last
someInstance == nil) is still true. If so then that class was
instanciated in the meantime.
So suffice to say now that I can tell whether a test has used a Network
class, the TestRunner can now show you which tests used the network and
can mark those tests for later filtering etc.
Keith
___________________________________________________________
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. http://uk.docs.yahoo.com/trueswitch2.html
More information about the Squeak-dev
mailing list
|