Hacker News new | past | comments | ask | show | jobs | submit login

> 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.




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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: