Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm of the opinion that mocks should be provided by the thing that you're mocking. That is, if you are wanting to mock out a service, the mock should be owned by the service that is being mocked.

And then it should be part of that service's test suite, to verify it's own mock.

You update your service? Then you must update the mock.

I guess that's more of a fake, but the naming doesn't matter as much as the behavior.



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

Search: