¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: How would you TDD a website front-end?


 

The pattern I have is

User inputs a value
Form posts value to server
Server responds with new model data.
Form reconfigures.

"Test changes to the model" then I think means testing the web service.? So don't test the view?

Alan Baljeu
alanbaljeu@...



On Thursday, January 2, 2020, 06:58:20 p.m. EST, Avi Kessner <akessner@...> wrote:


Test the changes to the model, not the GUI itself.


On Fri, Jan 3, 2020, 00:26 George Dinwiddie <lists@...> wrote:
Alan,

Way back, I played with test-driving AWT and Java Swing UIs, starting
with just jUnit. Given the availability of web driver libraries, you can
do similar things much more easily.

In general, I tested the GUI with a test API to make sure things were
wired up correctly. I tested the actual API to make sure the system
worked correctly.

In

you can see an example of re-using a test that drove the API creation to
check the same result from the GUI by injecting a different adapter to
talk with the system under test.

? - George

> Alan Baljeu
> alanbaljeu@...
>
>

--
? ----------------------------------------------------------------------
? ?* George Dinwiddie *? ? ? ? ? ? ? ? ? ? ?
? ?Software Development? ? ? ? ? ? ? ? ? ?
? ?Consultant and Coach
? ----------------------------------------------------------------------




Join [email protected] to automatically receive all group messages.