Hacker News new | ask | show | jobs
by Jensson 112 days ago
> Especially if you already have all the tests.

Most tests people write have to be changed if you refactor.

1 comments

They shouldn't. Refactor shouldn't affect requirements, and tests should be based on requirements. I'm talking about integration and e2e tests, not unit. In this brave new world I'm not sure you need unit tests.