• 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 testing framework suggestions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unit testing framework suggestions?


  • Subject: Re: Unit testing framework suggestions?
  • From: Georg Tuparev <email@hidden>
  • Date: Sun, 26 Sep 2004 22:57:35 +0200


On Sep 26, 2004, at 7:35 PM, Christian Pekeler wrote:

In my experience, for anything but trivial systems, these two class hierarchies are not an exact mirror of each other. Often times I have more than one test class per production class. These test classes test different aspects of the production class and usually have different setups. Sometimes I also have a testclass to test the interaction between certain production classes. And other timed I don't have a test class for a production class at all because I only test what could possibly fail and what requires me to do TDD.

If you read carefully my initial email, you would be surprised to discover that I am not saying that all test code should stay in the class being tested. But it is my experience, that this feels most naturally for about 70% of all cases. For these 70% of all tests, I do not want to be forced to use TestCase subclasses, because of reasons I explained in an earlier posting. For these 70% of the tests, it is also TSTTCPW to keep them close to the code they test, and this is a good thing!


If I have to chose between both extremes (xUnit - all tests re in TestCase subclasses, and Marcel's way - non of them is in a TestCase class) I would confidently choose MPWTestKit...

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


  • Follow-Ups:
    • Re: Unit testing framework suggestions?
      • From: Marcel Weiher <email@hidden>
References: 
 >Re: Unit testing framework suggestions? (From: Tim Hart <email@hidden>)
 >Re: Unit testing framework suggestions? (From: "M. Uli Kusterer" <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Georg Tuparev <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Marcel Weiher <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Christian Pekeler <email@hidden>)

  • Prev by Date: Re: [NEWBIE]: Selecting Cells in a Browser
  • Next by Date: Re: Is there a way to get rid of the line at the bottom of a NSToolbar?
  • Previous by thread: Re: Unit testing framework suggestions?
  • Next by thread: Re: Unit testing framework suggestions?
  • Index(es):
    • Date
    • Thread