Re: unit test subclassing
Re: unit test subclassing
- Subject: Re: unit test subclassing
- From: Prachi Gauriar <email@hidden>
- Date: Thu, 27 Apr 2006 00:45:46 -0400
On Apr 27, 2006, at 12:15 AM, Olivier Destrebecq wrote:
I would like to be able to write one test suite that will test
several subclass that all respond to the same interface. Basically
the suite of test would be repeated with a different set of
parameter that i would get from a plist or something. The parameter
various parameter would then trigger the creation of the various
classes.
How can i go about modifying SenTest so that it will allow me to
run that same suite of test several times, each time using
different parameters.
This is admittedly a guess, but it doesn't seem like there's any
reason you can't just created an abstract SenTestCase subclass that
contains the majority of test code and then create subclasses with
special -setUp and -tearDown methods to set up the appropriate type
of object for the given test. Since you'd use an abstract test case
class, you may need to manually run your tests using SenTestSuite so
that SenTestingKit doesn't detect the presence of the abstract class
and try to automatically run all of its -test* methods.
-Prachi
_______________________________________________
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