logoalt Hacker News

gchamonliveyesterday at 8:57 PM1 replyview on HN

It can if your refactor needs to deal with interface changes, like moving methods around, changing argument order etc... all these need to propagate to the tests


Replies

bluGillyesterday at 9:55 PM

Your tests are an assertion that 'no matter what this will never change'. If your interface can change then you are testing implementation details instead of the behavior users care about.

the above is really hard. A lot of tdd 'experts' don't understand is and teach fragile tests that are not worth having.

show 3 replies