Re: [TFUI] A Small Success

Chris Hanson <[email protected]>
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
On Jul 28, 2004, at 5:55 AM, Ron Jeffries wrote:
> Here's my first test. It tests that when you click the button it goes 
> to
> the right place, which of course includes the check that it's hooked 
> up. I
> haven't checked the hookup directly and don't know yet how to do it, 
> but
> I'm happy for now because this test actually tests what I care about.

This was sort of my point in talking about how Cocoa works: At least in 
Cocoa, it's easy to test the hookup itself.  Trust that framework 
classes work reasonably, test the hookup (target & action in Cocoa), 
and test the code that gets hooked up too.  That's fine for most uses.  
I suspect that would be sufficient for many other frameworks as well.

Of course for things like selective enabling etc. you can also put your 
data model in a particular state and check that the human interface 
reflects that state (buttons are enabled/disabled, explanatory text is 
shown, and so on).  That's also pretty easy.

You don't necessarily need to have your tests drive your interface 
itself to test that the interface is set up properly and is very likely 
to work.

   -- Chris

PS - Sorry I haven't been more responsive lately, been really busy.

-- 
Chris Hanson <[email protected]>
http://www.livejournal.com/users/chanson/



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/TestFirstUserInterfaces/

<*> To unsubscribe from this group, send an email to:
    TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.