[TFUI] Re: TDD in WebDesign (was Agile web design?)
Phlip <phlipcpp-/[email protected]>
| Newsgroups | gmane.comp.programming.test-first-user-interfaces,gmane.comp.programming.extreme-programming |
|---|---|
| Message-ID | <[email protected]> |
Phlip wrote:
> TDD works by rapidly alternating between small
> code changes and automated checks. Authoring a
> user interface's appearance works by rapidly
> alternating
> between small code changes and visual checks.
Boris Gloger wrote:
> Is there any way to automate this? We struggled a
> long time with this
> issue, especially if you get the content for the
> website via a DB.
GUIs interfere with agility on two fronts. Tests are
absurdly hard to write, and GUIs are excessively easy
to refactor.
We need assertions that fail if a refactor changed
output behavior. To get there, we write "hyperactive"
assertions, which fail when the wind blows.
The end user might not care if a given stretch of HTML
said:
<strong><em>so what?</strong></em>
or:
<strong><em>so what?</em></strong>
Honestly, we dont care either. But our tests will,
because the second is strictly well-formed XHTML. When
we write pure XHTML, we can base many tests on XPath,
to parse out tags that Production Code should have
placed in a Web page's source.
If such a test fails, per the TDD rules, the one of
the last few edits must have caused the failure. So
don't even diagnose the failure (but make sure you
could have). Just hit Undo and start the edit again.
Web browsers forgive to enable Web development by hook
or by crook - or by Notepad. That accelerates some
kinds of development, but not ours. Our tests
accelerate us, often by remaining more strict than
humanly possible.
=====
Phlip
http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
------------------------ 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/