Re: [TFUI] The TFUI Principles

"Phlip" <[email protected]>
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <000c01c51117$912a5dc0$0102a8c0@DF619121>
Owen Rogers wrote:


> i did exactly this a few months ago on my current project.  it has
> been hugely successful.  it's transformed the client from something
> that the developers said was "too hard to test" to a part of the
> codebase that is now being completely test-driven.
> i blogged about it here:
> http://dotnetjunkies.com/WebLog/exortech/archive/2004/12/29/39634.aspx

Dot.Net sure didn't get in the way, huh?

I can't tell if your blog specifies that you frequently comment your
reveal() out. Follow two rules:

    - tune your reveal() so you can call it from any test case in any
      suite of tests, on the GUI, at whim. You should have to think of
      nothing between realizing you need to see a given GUI, writing
      reveal(), and seeing it.

    - the goal is to never need to call reveal(). The goal is to TDD
      GUIs for as long as possible without even realizing you haven't
      seen a window in a long time.

So, as you attain the first goal, you stand on a slippery slope. You _could_
write a GUI very rapidly by writing the beginnings of test cases, calling
reveal(), finishing the tested feature, and never writing any assertions.
Frequently hitting a test button will give many of the benefits of TDD, but
you won't grow the test fixtures that satisfy Query Visual Appearance and
Simulate User Interaction.

(BTW about that nasty Spam infestation, fight it quickly, even if you must
lock your blog down. Spam works by letting Google spider your page, even if
nobody who reads your page is stupid enough to click on a link. Those links
now have a higher pagerank in Google, which is what the spammers' clients
are buying.)

-- 
  Phlip
  http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces



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.