Re: [TFUI] Digest Number 225
Paul Hamill <spikehaml-/[email protected]> Fri, 18 Mar 2005 08:44:22 -0800 (PST)
| Newsgroups | gmane.comp.programming.test-first-user-interfaces |
|---|---|
| Message-ID | <[email protected]> |
Phlip - Building a unit test framework into a legacy GUI app is a hard problem (especially using MFC). Your approach is excellent: minimum code changes, minimum effort to build tests. When you make the dialog not WS_VISIBLE, you have to add code to show() it. When I test GUI objects, I generally don't care whether they are visible or not, as long as I don't have to interact with them. Besides, the visible GUI operations make it look like I'm actually working. :) What is the purpose of capturing the window as a bitmap? I would comment that trying to unit test the exact pixel output of a GUI is very expensive, and usually unnecessary. - Paul > Date: Thu, 17 Mar 2005 07:19:27 -0800 > From: Phlip <[email protected]> > Subject: TDD for MFC > > TDDers: > > I research the interaction between Test-Driven > Development and GUIs. > > When you write a GUI, you frequently skip testing in > favor of just > looking at the GUI to see results. The "Test First > User Interfaces" > concept advises you make GUIs easy to spot-check > under test, and > thence to leverage these checks to grow test > fixtures that make > spot-checks less important. The goal is rapid, > heads-down coding of > GUI effects without displaying the GUI. > > I wrote a recipe for submitting a legacy MFC program > to the TFUI > principles here: > > http://www.xpsd.org/cgi-bin/wiki?TfuiForMfc > > Please advise for technology, esthetics, verbiage, > etc. > > -- > Phlip > > http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces > > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ 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/