in reply to Refactoring makes unit tests obsolete

Isn't that the point in unit tests?

When a bug turns up it forces you to consider if it is: A) an introduced bug not present in the original, or b) a bug you hadn't tested for originally. If the former, you correct the code, if the latter, you add a new test for it.

As the process iterates, the test suite gets stronger and the possibility of bugs getting into the field diminish.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
  • Comment on Re: Refactoring makes unit tests obsolete