Monday, January 6, 2014

On automated unit testing

1. Code that is test harnessed with automated unit testing (or developer testing) is like the money we have given to somebody on interest. We get interest on it as we go over the time of the project.

2. Code that is NOT test harnessed with automated unit testing (or developer testing) is like we borrow the money from others on interest. We've to pay with interest as we go over the time of the project. This interest is time and money we pay in fixing the bugs created in adding more feature. Every time we add new code or fix the bugs we need to test associated the code to know something is not broken. This is even worse when we refactor the code base to improve the internal structure to make it more changeable. Code refactoring without the automated unit tests is very difficult and time consuming.

So Automated unit tests are earnings (interest of time, money and energy). Without this we have to pay this interest.

No comments:

Post a Comment