4 ms·
What footguns are you looking to avoid with mocks? I've been using them for about a year now and haven't run into much issues.
by animal_spirits 6y ago
What footguns are you looking to avoid with mocks? I've been using them for about a year now and haven't run into much issues.
- AlexCoventry 6y agoIf the mock's model of the mocked-out component is inaccurate, it reduces the relevance of the test using the mock.
- deleted 6y ago[deleted]
- nerdponx 6y agoCheck out the talk by Edwin Jung, "Mocking and Patching pitfalls": https://www.youtube.com/watch?v=Ldlz4V-UCFw https://www.youtube.com/watch?v=Ldlz4V-UCFw
- UK-Al05 6y agoI've seen things like the mock returns null for an error. But the real thing throws an exception.