Re: [extremeprogramming] What has changed for you over the past 20 years?
"Phil Goodwin" <[email protected]> Thu, 5 Dec 2019 08:11:56 -0500
| Newsgroups | gmane.comp.programming.extreme-programming |
|---|---|
| Message-ID | <CAMMwyYoYaaDkDmhENDm0Z5WtmTQKvuLkSNW8aLuDaTDdCyKSXQ@mail.gmail.com> |
--000000000000301c3f0598f4ad0d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Right. There's a step zero involving good old fashioned debugging to find the root cause, but then it makes sense to test drive the solution for all the trains it makes sense to TDD in the first place. On Wed, Dec 4, 2019, 10:50 PM Slava Imeshev via Groups.Io <imeshev=3D [email protected]> wrote: > 1. Add a test that fails because the bug is there. > 2. Make the test green by fixing the bug. > 3. Check in. > > On Dec 4, 2019, at 5:58 PM, Steve Gordon <[email protected]> wrote: > > > > On Wed, Dec 4, 2019 at 5:58 PM Slava Imeshev via Groups.Io <imeshev=3D > [email protected]> wrote: > >> Most of times bugs come from under-tested code. Sometimes from edge cas= es >> when requirements weren=E2=80=99t clearly understood. New tests must co= ver missed >> use cases. TDD works great here. >> >> > Slava, > > How do you use TDD to write new tests for existing code? How do you go > from a discovered bug to knowing what unit tests to write for which > objects? How does TDD apply? > > > >=20 > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#160421): https://groups.io/g/extremeprogramming/messag= e/160421 Mute This Topic: https://groups.io/mt/39418691/2417047 Group Owner: [email protected] Unsubscribe: https://groups.io/g/extremeprogramming/leave/4902963/61983806= 5/xyzzy [[email protected]] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --000000000000301c3f0598f4ad0d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">Right. There's a step zero involving good old fashion= ed debugging to find the root cause, but then it makes sense to test drive = the solution for all the trains it makes sense to TDD in the first place.</= div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On= Wed, Dec 4, 2019, 10:50 PM Slava Imeshev via Groups.Io <imeshev=3D<a hr= ef=3D"mailto:[email protected]">[email protected]</a>> wrote:<br></d= iv><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left= :1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><div>= 1. Add a test that fails because the bug is there.</div><div>2. Make the te= st green by fixing the bug.</div><div>3. Check in.</div><br><div><blockquot= e type=3D"cite"><div>On Dec 4, 2019, at 5:58 PM, Steve Gordon <<a href= =3D"mailto:[email protected]" target=3D"_blank" rel=3D"noreferrer">sgor= [email protected]</a>> wrote:</div><br><div><div dir=3D"ltr"><div dir=3D"= ltr"><br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gma= il_attr">On Wed, Dec 4, 2019 at 5:58 PM Slava Imeshev via Groups.Io <ime= shev=3D<a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D"nore= ferrer">[email protected]</a>> wrote:<br></div><blockquote class=3D"gm= ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,= 204,204);padding-left:1ex"><div><div>Most of times bugs come from under-tes= ted code. Sometimes from edge cases when requirements weren=E2=80=99t clear= ly understood. New tests must cover missed use cases. TDD works great here.= </div><div><br></div></div></blockquote><div><br></div><div>Slava,</div><di= v><br></div><div>How do you use TDD to write new tests for existing code?= =C2=A0 How do you go from a discovered bug to knowing what unit tests to w= rite for which objects?=C2=A0 How does TDD apply?</div><div>=C2=A0</div></d= iv></div> </div></blockquote></div><br></div> </p></p></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/extremeprogramming/messag= e/160421">View/Reply Online (#160421)</a> | <a target=3D"_blank" href=3D"mailto:[email protected]?subject= = =3DRe:%20Re%3A%20%5Bextremeprogramming%5D%20What%20has%20changed%20for%20y= ou%20over%20the%20past%2020%20years%3F">Reply To Group</a> | <a target=3D"_blank" href=3D"mailto:[email protected]?subject= =3DPrivate:%20Re:%20Re%3A%20%5Bextremeprogramming%5D%20What%20has%20change= d%20for%20you%20over%20the%20past%2020%20years%3F">Reply To Sender</a> | <a target=3D"_blank" href=3D"https://groups.io/mt/39418691/2417047">Mu= te This Topic</a> | <a href=3D"https://groups.io/g/extremeprogramming/post">New Topic</a><br= > <br> <a href=3D"https://groups.io/g/extremeprogramming/editsub/2417047">Your Su= bscription</a> | <a href=3D"mailto:[email protected]">Contact Group Owner<= /a> | <a href=3D"https://groups.io/g/extremeprogramming/leave/4902963/619838065/= xyzzy">Unsubscribe</a> [[email protected]]<br> <div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div> --000000000000301c3f0598f4ad0d--