If you just starting out with Unit testing, I would suggest you picking up a good book covering the subject. For starters I would recommend every developer to read "The pragmatic programmer" (http://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X ) and then to complete the circle of knowledge a book completely covering the unit testing subject such as (http://www.amazon.com/Pragmatic-Software-Testing-Effective-Professional/dp/0470127902/ref=sr_1_5?ie=UTF8&s=books&qid=1248562222&sr=1-5 )

Please note that none of the books cover any specific language or testing framework.

If you just are in a hurry trying to grab some new info and apply to to your project, could you please describe more in detail what you would like to accomplish and maybe I can get you started. Info like type of testing needed, is it a library or a UI based application, threading, data access etc.


Message: 2
Date: Sat, 25 Jul 2009 12:09:13 -0700
From: Matt Neuburg <[email protected]>
Subject: Re: Unit testing question
To: <[email protected]>
Message-ID: <c690a669.4bdf4%[email protected]>
Content-Type: text/plain;       charset="US-ASCII"

On Jul 25, 2009, at 1:17 AM, [email protected] wrote:

I'd like to add unit testing to my app, but I'ma little bit unclear
on the concept. I've looked at Apple's docs on the Sentest framework
and had no trouble getting the sample project working, but I lose it
when translating the concepts to my particular application. I've
seen some sample projects around the net that use the Sentest
framework, but the the unit tests are trivially simple, asserting
that 1+1 = 2, for example. What I really need is a sample project of
some complexity that uses real unit tests against the project. Can
anyone help me out here?

This is not exactly unit testing per se, but if you want to exercise your app thru its interface, you might want to consider GUI scripting. With GUI scripting you can both drive and read an application's interface through Apple events. One good way to implement a battery of GUI scripting tests is
with rb-appscript. m.

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to