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

Re: Unit Testing


  • Subject: Re: Unit Testing
  • From: Chris Hanson <email@hidden>
  • Date: Sat, 29 Dec 2007 16:20:44 -0800

On Dec 28, 2007, at 9:07 PM, Omar Qazi wrote:

I'm looking for a unit testing framework for Cocoa. I've heard that there is one called OCUnit that's included with Xcode, but I can't seem to find it anywhere on my system. Since I'm new to use it with a new application, I would prefer one that worked with Objective-C 2.0.

The OCUnit unit testing framework included with Xcode is called SenTestingKit.framework on disk, as that's been the name of the framework for nearly 10 years now. (I believe it even predates JUnit, since it's a direct derivative of Kent Beck's Smalltalk Testing framework.)


A good place to start with Cocoa unit testing is the Unit Testing Guide, as Brian Christensen pointed out. After reading that, you may also want to check some of my weblog posts tagged with "unit testing" here: <http://chanson.livejournal.com/tag/unit+testing>. A good place to start would be <http://chanson.livejournal.com/119097.html>, which contains links to various how-to posts.

Under that tag, I also talk a bit about how easy it is to specify your user interface with Cocoa and unit tests. It's a lot more straightforward than in some other frameworks because Cocoa lets you just test the connections between your UI and your controller or model layer code, rather than try to simulate events and push them through your UI to verify its behavior. If the connections (outlets, target- action, and bindings) are set up correctly, you can be reasonably certain that the behavior will be correct.

  -- Chris

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Unit Testing (From: Omar Qazi <email@hidden>)

  • Prev by Date: duplicate symbols in Xcode 3
  • Next by Date: CoreFoundation/IOKit with cocoa
  • Previous by thread: Re: Unit Testing
  • Next by thread: Re: Unit Testing
  • Index(es):
    • Date
    • Thread