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

"George Dinwiddie" <[email protected]> Thu, 2 Jan 2020 17:26:07 -0500
Newsgroups gmane.comp.programming.test-driven-development
Organization iDIA Computing, LLC
Message-ID <[email protected]>
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 
https://github.com/gdinwiddie/EquineHoroscope/tree/master/src/test/java/com/gdinwiddie/equinehoroscope/acceptance 
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
> [email protected]
> 
> 

-- 
  ----------------------------------------------------------------------
   * George Dinwiddie *                      http://blog.gdinwiddie.com
   Software Development                    http://www.idiacomputing.com
   Consultant and Coach
  ----------------------------------------------------------------------


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#35825): https://groups.io/g/testdrivendevelopment/message/35825
Mute This Topic: https://groups.io/mt/69387056/3268755
Group Owner: [email protected]
Unsubscribe: https://groups.io/g/testdrivendevelopment/leave/6156322/744556386/xyzzy  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-