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

Don't mock everything, by mocking everything, you are testing... nothing.



I love this. I can't count how many cases I've come across where at the end of the day, you assert that 1=1 because all that is happening is mocks being passed around and you assert that your mock is your mock.


Mocking everything is mocking testing?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: