Re: Freelance programming
Re: Freelance programming
- Subject: Re: Freelance programming
- From: Chris Hanson <email@hidden>
- Date: Wed, 5 Nov 2003 04:10:36 -0600
On Nov 5, 2003, at 2:01 AM, Matthew Johnson wrote:
Can you point us to the unit testing frameworks you refer to and offer
some opinions about their relative strengths and weaknesses? I am
currently in the process of identifying a unit testing strategy for
future cocoa projects...
Use Google to search for "Objective-C unit testing" and you should get
a bunch of hits. "In the process of identifying a unit testing
strategy" sounds like you're doing way too much work. Find a couple
frameworks, spin a couple quick example projects, and choose. In the
worst case you'll just have to take a few hours to roll your own. :)
I prefer OCUnit from Sen:te <
http://www.sente.ch/software/ocunit/>
though I have to do a little work to start using it with Xcode.
There's also ObjCUnit and I think at least one other framework.
One of the nice things about OCUnit was that it integrated well with
Project Builder. I'd just create an additional target for testing,
always build that, and it would run my application and its unit tests
as part of the build. Any test failures were reported back as build
errors.
The other thing I like about OCUnit is that it takes full advantage of
the Objective-C runtime. Your test cases are subclasses of
SenTestCase; they automatically get instantiated, and any methods whose
names start with "test" are run with the test case. This means you
don't have to the "maintain a test suite" dance that you do with JUnit
or some other frameworks.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Outsourcing Vendor Evaluation | Phone: +1-847-372-3955
Custom Mac OS X Development | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.