Re:Prefer Fakes over Mocks
by chriswarbo on Wednesday October 14, 2020 @09:31AM
(#24776296)
A "fake" isn't a test; it's a real, working implementation of some interface. The only reason we don't use such implementations in production is for some non-functional reason (efficiency, resilience, etc.). For example, if we want a key/value store we might choose Redis for production, but a HashMap is a perfectly good fake (and you can bet that the language/library implementing HashMap has a ton of tests!)
[ Parent
| on HN ]
There are no comments on this comment yet.