Re:Write unit tests? Start deleting them
by lelele on Monday January 23, 2012 @05:42PM
(#3502527)
Refactoring can impact your unit interface too, and when that happens you'll have to refactor your tests accordingly. What you don't want while refactoring is being stuck with your old interfaces.
[ Parent
| on HN ]
Re:Write unit tests? Start deleting them
by ShaunCodeweaver on Tuesday January 24, 2012 @08:49AM
(#3504676)
Exactly. Refactoring is the process of changing code without changing behaviour. If that means you change some tests so be it. There is no rule to say that you can't do this, but many devs seem to fear this.