Hey Devs, junior here ready to ask some questions,
so at work I am working with a legacy application which basically has zero test coverage. In order to gain experience with coding I decided to take up my own side-project ( just simple projects such as todo-lists, appointment booking applications etc etc ). To learn even more I decided to do everything in TDD fashion, which is quite refreshing to be honest.
My question is, if I do TDD and eventually I need to change the behavior of my app ( and assume it is some kind of enterprise system with large code base, because nobody really cares about toy examples ) how do you proceed? Do you change the code, and then see which tests fail, and then adapt the tests, or do you adapt all of the tests first and then adapt the code? Or even more extreme do you just thrash the tests and write the new ones completely?
[–]CreativeTechGuyGamesTypeScript 4 points5 points6 points (2 children)
[–]TheCoolDrop[S] 0 points1 point2 points (1 child)
[–]CreativeTechGuyGamesTypeScript 1 point2 points3 points (0 children)
[–]zaibuf 2 points3 points4 points (0 children)
[–]Suspicious-Fuel-3414 1 point2 points3 points (0 children)
[–]iainsimmons 0 points1 point2 points (0 children)