Re: Unit testing framework suggestions?
Re: Unit testing framework suggestions?
- Subject: Re: Unit testing framework suggestions?
- From: Georg Tuparev <email@hidden>
- Date: Sun, 26 Sep 2004 01:54:34 +0200
On Sep 24, 2004, at 5:57 PM, M. Uli Kusterer wrote:
- (void) testSetRatioRange
{
STAssertNoThrow ([x setRatio: minimum], nil);
STAssertNoThrow ([x setRatio: maximum], nil);
STAssertThrowsSpecificNamed ([x setRatio:minimum - epsilon],
NSException, NSInvalidArgumentException, nil);
STAssertThrowsSpecificNamed ([x setRatio:maximum + epsilon],
NSException, NSInvalidArgumentException, nil);
}
I'm not sure that automatically generating such code is worth the
effort.
Well, I guess one could just have a macro that does a typical
sequence of such tests, right? After all, testing a minimum and
maximum and that it doesn't or does throw on these should be a pretty
common request.
That's not the point! There are many test-coverage frameworks that are
as useful as Rational designing tool...
Good unit tests help the developer to:
- design the application,
- document the sources,
- gain confidence (courage) needed to make major refactorings,
- fulfill the promise of delivering business value to the clients (e.g.
by demonstrating that acceptance tests run).
None of these tasks is to be autogenerated by macro!
Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden