15.12.11

More Time Saved By Unit Tests | Javalobby

More Time Saved By Unit Tests | Javalobby
  • haven’t touched the code in over a year
  • Two problems, 
    • Getting back up to speed on the code, figuring out where the make the change, and making it. 
    • Making sure code changes don’t break anything thats currently working
  • For the first problem
    • To create the unit tests first to verify that the change does as expected.
  • After finding the method that need to change, 
    • Make the code changes and run my tests. 
    • All the original tests pass with flying colors
What the author did was quite normal, except he didn't have unit tests for that specific piece of code at the first place. But it is alright and it is normal.

No comments: