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

How do you test your mocks?



How do you test the tests that are testing your mocks? That said verifying mocks are a great help - they won't let you mock methods that don't exist on the real object.

Some mocking libraries, like the VCR library in ruby, can be turned off every now and then so you tests hit real endpoints. It is worth doing from time to time.




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

Search: