4 ms·
By refactor he means to change the purpose of the code, not just the implementation. Your tests will not cover this.
by imsteve 19y ago
By refactor he means to change the purpose of the code, not just the implementation. Your tests will not cover this.
- euccastro 19y agoDoes he? Then he's using the wrong word. Refactoring is changing the implementation while keeping the interface and semantics. Which, I agree, is one of the shortcomings of unit testing: placing an additional burden on improving interfaces and semantics.