Hacker News new | ask | show | jobs
by ape_key 859 days ago
Unit tests are dead weight during refactoring. Integration tests are useful.

Code coverage metrics are most easily met by writing unit tests. Unit tests are tedious to write.

If you have a robot writing unit tests, I do not want to see your codebase. Refactor all day long. I’m not going near it.

1 comments

It is not at all uncommon for me to refactor the internals of a unit (ie, a class) in order to add a feature. Unit tests are extremely useful here.