3 ms·
"I disagree unless all your changes are really shallow." You are correct sir! What the tests do is allow you to refactor (reorganize or clean up code) and ver
by ams6110 17y ago
"I disagree unless all your changes are really shallow."
You are correct sir! What the tests do is allow you to refactor (reorganize or clean up code) and verify that you haven't changed functionality. That's the theory.
In practice however you are hardly ever refactoring for its own sake. In most cases you can't really justify paying developers to change code without some benefit that someone (i.e. a customer) will pay YOU for. And as soon as you start changing behaviors, you now have to change code and tests (or write new tests).