| Article: |
Agile User Interface Development | |
| Subject: | I'm sorry.... | |
| Date: | 2004-12-03 19:29:29 | |
| From: | jbrains | |
|
Response to: I'm sorry....
|
||
|
I don't understand how JUnit Recipes "punts" on this issue. It includes a collection of recipes related to testing web user interfaces /in isolation/ -- something that a majority of even the TDD community claims is not worth the effort. I have test-driven web UIs implemented with Velocity with relative ease and to stunning effect, and included that experience in the book. What more are you expecting? |
||
Showing messages 1 through 1 of 1.
-
I'm sorry....
2004-12-06 09:05:42 decoder [View]



Furthermore, their whole 'gold master' approach is super simplistic and not given much serious treatment.
Let me be super-specific. In JSF, the framework kicks back messages automatically if a validation or conversion fails. I made my own custom component to pick up those messages and turn the style of the corresponding field's label to red text. Wouldn't it be great to have a unit test that creates a form, forces an error and then checks to see that the style of the label in the response (the same page being redrawn) was red?
Most people think of unit tests as being simply so we can figure out if something works. Automation yields a much broader value: being able to know that something works at all times.