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

Re: Unit test tool


  • Subject: Re: Unit test tool
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 30 May 2003 09:45:28 -0400

On Friday, May 30, 2003, at 07:39 AM, Poornima Ranganath wrote:
Are there any tools that will be fully automated for testing Cocoa framework in ObjectiveC?

OCUnit *is* fully automated. I suspect ObjcUnit is as well. Setting up OCUnit to run your unit tests every time you do a build in Project Builder is very simple.

Unit tests are better called "programmer tests" - they are code written by developers to verify that other code is working correctly. See <http://c2.com/cgi/wiki?UnitTest> and <http://c2.com/cgi/wiki?ProgrammerTest> for details. More specifically, see <http://c2.com/cgi/wiki?TestDrivenDevelopment> for details about why not wanting to "script" your tests is misplaced.

I doubt you'll find software that automatically generates unit tests for Objective-C. I also doubt you'll find software that automatically generates *useful* unit tests for any language.

There is software that generates unit tests out there for some languages and frameworks, but typically all it does is generate tests for exceptional conditions - overflow conditions, passing null, etc. They verify your code doesn't do something wrong when passed wild values, not that your code does something right when passed reasonable values. You'd be better off doing TDD where possible.

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | 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.

References: 
 >Unit test tool (From: Poornima Ranganath <email@hidden>)

  • Prev by Date: Re: Threads, messages and blocking
  • Next by Date: Re: Carbon : start-up volume name/path as POSIX
  • Previous by thread: Re: Unit test tool
  • Next by thread: Moving records in NSTableView
  • Index(es):
    • Date
    • Thread