There was an interesting discussion on Twitter a few weeks ago on whether we should use mocking frameworks or not. I asked to the author of the original post, why do you prefer hand-crafted stubs and fakes, Ted? Ted M. Young's response was: “The ease of using a tool to create them means you won't notice how complex the real thing has become. So, if it becomes difficult or tedious to create them by hand, that often points to interfaces or classes that have become too large, with too many responsibilities."
Mocking frameworks vs mocks by hand
Mocking frameworks vs mocks by hand
Mocking frameworks vs mocks by hand
There was an interesting discussion on Twitter a few weeks ago on whether we should use mocking frameworks or not. I asked to the author of the original post, why do you prefer hand-crafted stubs and fakes, Ted? Ted M. Young's response was: “The ease of using a tool to create them means you won't notice how complex the real thing has become. So, if it becomes difficult or tedious to create them by hand, that often points to interfaces or classes that have become too large, with too many responsibilities."