Hacker News new | ask | show | jobs
by JCharante 1177 days ago
> Mock function calls until no original code runs.

This one hurt personally. I didn't write it, we maintain it, but we have no time to go back and write real tests.

1 comments

As I've become more experienced as a programmer, I've grown to hate unit tests that rely on mocks. They don't test a damn thing and they calcify code by making it a chore to update, since you have to update all the useless tests that don't do anything too.