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.
|
|---|