¿ªÔÆÌåÓý

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

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


 

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.