Re:Why I don't mock
by lmm on Wednesday May 28, 2014 @12:49PM
(#7811317)
For something like a web API I think most people would support mocking. If it's just a library it's a lot less clear-cut; my approach would be to use the real thing until it gets to be a problem (because it's making your tests slow, or because it doesn't expose the right interface, or because it's too hard to get it into the state that you want to test). Certainly use mocks when you need to, but the rest of the time there are arguments for both sides and you probably need to figure out what you prefer yourself.
[ Parent
| on HN ]
There are no comments on this comment yet.