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

Re: Unit testing core data


  • Subject: Re: Unit testing core data
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 11 Sep 2006 11:39:49 -0700

On Sep 11, 2006, at 8:55 AM, Julio Bianco wrote:
I'm trying to perform some unit test over my application, but I don't know how to test a core data model, I needed to test it at the beginning, when I create a manager object model, when I start a model, and when I perform a fetch, but I cannot find any information on how to do it. I'm using the ocunit that provide me xcode, and I follow some samples of how to create a test case set, but I don't know how to continue.
If anybody can lead me on how to continue, I'll be thankful

What exactly is it that you'd like to test? It's not clear to me from the above. Are you trying to do test-driven development of your data model, or are you trying to test that your managed object classes behave as you expect?


I've written some entries on my blog about some ways to go about writing Core Data tests, as well as tests for Cocoa user interfaces and for declarative, connection-oriented functionality in general. Here are some links:

  Unit testing and Core Data
  http://chanson.livejournal.com/115621.html

  Trust, but verify.
  http://chanson.livejournal.com/118380.html

  Unit testing Cocoa user interfaces: Target-Action
  http://chanson.livejournal.com/148204.html

Cocoa is very amenable to unit testing and test-driven development. You just need to determine the right way to approach it for what it is that you want to test.

  -- Chris



_______________________________________________
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


References: 
 >Unit testing core data (From: Julio Bianco <email@hidden>)

  • Prev by Date: Re: "make positive" function
  • Next by Date: Re: "make positive" function
  • Previous by thread: Unit testing core data
  • Next by thread: NSSavePanel default name and prepareSavePanel:
  • Index(es):
    • Date
    • Thread