• 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
Trust, but verify - OCUnit testing of Target-Action Connections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trust, but verify - OCUnit testing of Target-Action Connections


  • Subject: Trust, but verify - OCUnit testing of Target-Action Connections
  • From: "David H. Silber" <email@hidden>
  • Date: Sun, 11 Jan 2009 17:49:36 -0500

Hi folks,

I'm attempting to write unit tests for target-action connections for
Cocoa user interfaces, as described by Chris Hanson in his article "Unit
testing Cocoa user interfaces: Target-Action"(1) but am not succeeding.

I have created a trivial Cocoa Application, with trivial model and
controller classes, and with a view built in Interface Builder.  The
application changes its window title when its button is pressed, so it
obviously can load its window and is able to send messages to it.

I can't test it though, because I'm unable to get the window loaded
by/for the tests.  The -testWindowLoading test, which I swiped from Mr.
Hanson's article fails.

Any suggestions?

Thanks,
David

P.S.  If this is not the appropriate forum for this question, please let
me know & I'll ask elsewhere.

P.P.S.  Source code is at http://DavidSilber.name/Downloads/Hello.tar.gz

(1) http://chanson.livejournal.com/148204.html

--
David H. Silber  --  http://DavidSilber.name/
~
_______________________________________________

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

  • Follow-Ups:
    • Re: Trust, but verify - OCUnit testing of Target-Action Connections
      • From: Chris Hanson <email@hidden>
  • Prev by Date: How can i read the "iTunes Library" file?
  • Next by Date: Re: Mac Pro memory sizes
  • Previous by thread: Re: How can i read the "iTunes Library" file?
  • Next by thread: Re: Trust, but verify - OCUnit testing of Target-Action Connections
  • Index(es):
    • Date
    • Thread