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

"Mock" can be both a noun and a verb. As a noun, it's an alternative to stubs, fakes, and other such things. As a verb, it refers to the "monkey patching" method of putting those into place, in a way that undoing it is automatic and won't leak into other tests. The title seems to be referring to this second version, showing us ways to avoid patching with things like dependency injection.



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

Search: