Phlip
2010-04-03 16:09:38 UTC
http://zeroplayer.com/tfui/TestFirstUserInterfaces.pdf
It addresses these industry abuses:
- skipping the View layer in TDD
- testing the View thru a user-emulator (such as Watir!)
- writing the View code first, then testing it (a little!)
The goal is new test cases drive new View features, without looking at or
driving the View too often.
That is a tall hill to scale, hence the book is very dense. However, each
chapter and case study contains its own Best Practices that can be learned
alone, just by reading them.
Work with the book inspired my subsequent research with RoR, including
assert{ 2.0 }, assert_xhtml{}, and assert_rjs_. An alternate Web chapter is
my O'Reilly paper on TDD for Ajax: http://oreilly.com/catalog/9780596510657
It addresses these industry abuses:
- skipping the View layer in TDD
- testing the View thru a user-emulator (such as Watir!)
- writing the View code first, then testing it (a little!)
The goal is new test cases drive new View features, without looking at or
driving the View too often.
That is a tall hill to scale, hence the book is very dense. However, each
chapter and case study contains its own Best Practices that can be learned
alone, just by reading them.
Work with the book inspired my subsequent research with RoR, including
assert{ 2.0 }, assert_xhtml{}, and assert_rjs_. An alternate Web chapter is
my O'Reilly paper on TDD for Ajax: http://oreilly.com/catalog/9780596510657
--
Phlip
Phlip