• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: unit test subclassing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: unit test subclassing
      • From: Chris Hanson <email@hidden>
References: 
 >unit test subclassing (From: Olivier Destrebecq <email@hidden>)

  • Prev by Date: unit test subclassing
  • Next by Date: Re: unit test subclassing
  • Previous by thread: unit test subclassing
  • Next by thread: Re: unit test subclassing
  • Index(es):
    • Date
    • Thread