Ned Batchelder nedbatchelder.com

Why your mock doesn’t work  ↦

Mocking is a powerful technique for isolating tests from undesired interactions among components. But often people find their mock isn’t taking effect, and it’s not clear why. Hopefully this explanation will clear things up.

Mocking isn’t always the best test isolation technique, but if/when you use it, you might as well use it correctly. Ned’s here to help you do just that.


Discussion

Sign in or Join to comment or subscribe

0:00 / 0:00