Trust, but verify - OCUnit testing of Target-Action Connections
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