Re: [testdrivendevelopment] How would you TDD a website front-end?
"Avi Kessner" <[email protected]> Fri, 3 Jan 2020 01:58:00 +0200
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <CAGEhWpFzxVW51sD-Kb+Bg1vonQxY3TR8LH2PA7baQY+80siB_Q@mail.gmail.com> |
--00000000000040a08b059b30f74b Content-Type: text/plain; charset="UTF-8" Test the changes to the model, not the GUI itself. On Fri, Jan 3, 2020, 00:26 George Dinwiddie <[email protected]> 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 > > 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 (#35826): https://groups.io/g/testdrivendevelopment/message/35826 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]] -=-=-=-=-=-=-=-=-=-=-=- --00000000000040a08b059b30f74b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">Test the changes to the model, not the GUI itself.</div><= br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri,= Jan 3, 2020, 00:26 George Dinwiddie <<a href=3D"mailto:lists@idiacomput= ing.com">[email protected]</a>> wrote:<br></div><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad= ding-left:1ex">Alan,<br> <br> Way back, I played with test-driving AWT and Java Swing UIs, starting <br> with just jUnit. Given the availability of web driver libraries, you can <= br> do similar things much more easily.<br> <br> In general, I tested the GUI with a test API to make sure things were <br> wired up correctly. I tested the actual API to make sure the system <br> worked correctly.<br> <br> In <br> <a href=3D"https://github.com/gdinwiddie/EquineHoroscope/tree/master/src/t= est/java/com/gdinwiddie/equinehoroscope/acceptance" rel=3D"noreferrer noref= errer" target=3D"_blank">https://github.com/gdinwiddie/EquineHoroscope/tree= /master/src/test/java/com/gdinwiddie/equinehoroscope/acceptance</a> <br> you can see an example of re-using a test that drove the API creation to <= br> check the same result from the GUI by injecting a different adapter to <br= > talk with the system under test.<br> <br> =C2=A0 - George<br> <br> > Alan Baljeu<br> > <a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D"nore= ferrer">[email protected]</a><br> > <br> > <br> <br> -- <br> =C2=A0 -------------------------------------------------------------------= ---<br> =C2=A0 =C2=A0* George Dinwiddie *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"http://blog.gdinwiddie.com" = rel=3D"noreferrer noreferrer" target=3D"_blank">http://blog.gdinwiddie.com<= /a><br> =C2=A0 =C2=A0Software Development=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"http://www.idiacomputing.com" rel= =3D"noreferrer noreferrer" target=3D"_blank">http://www.idiacomputing.com<= /a><br> =C2=A0 =C2=A0Consultant and Coach<br> =C2=A0 -------------------------------------------------------------------= ---<br> <br> <br> <br> <br> </blockquote></div> <div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div> <hr> Groups.io Links:<p> You receive all messages sent to this group. <p> <a target=3D"_blank" href=3D"https://groups.io/g/testdrivendevelopment/mes= sage/35826">View/Reply Online (#35826)</a> | <a target=3D"_blank" href=3D"mailto:[email protected]?subj= ect=3DRe:%20Re%3A%20%5Btestdrivendevelopment%5D%20How%20would%20you%20TDD%2= 0a%20website%20front-end%3F">Reply To Group</a> | <a target=3D"_blank" href=3D"mailto:[email protected]?subject=3DPri= vate:%20Re:%20Re%3A%20%5Btestdrivendevelopment%5D%20How%20would%20you%20TDD= %20a%20website%20front-end%3F">Reply To Sender</a> | <a target=3D"_blank" href=3D"https://groups.io/mt/69387056/3268755">Mu= te This Topic</a> | <a href=3D"https://groups.io/g/testdrivendevelopment/post">New Topic</a>= <br> <br> <a href=3D"https://groups.io/g/testdrivendevelopment/editsub/3268755">Your= Subscription</a> | <a href=3D"mailto:[email protected]">Contact Group Own= er</a> | <a href=3D"https://groups.io/g/testdrivendevelopment/leave/6156322/7445563= 86/xyzzy">Unsubscribe</a> [[email protected]]<br> <div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div> --00000000000040a08b059b30f74b--