-
Notifications
You must be signed in to change notification settings - Fork 605
Allow generating loose/dynamic mocks #7
Comments
It's plausible, though in my experience if you're looking for a loose mock then you'd be better served by either a hand-written fake/stub, or merely expecting the relevant methods with |
Is there any update on this in the last two years ? |
I am not against this idea, but I would love to hear what others would expect to see here. |
I would love this ability. I've been feeling like my mock tests are messier than they need to be. I'd rather they be concise to exactly what I'm testing. I like the If the loose/dynamic approach isn't desirable, then perhaps something similar to what Mocha does in Ruby to help reduce the mocking friction. Mocha still fails the entire test like Example: p.s., I'm still very new to Go and
|
I am closing this issue in favor of #538. Future discussion on this topic will happen on that issue. |
Multiple mocking framework support both loose/dynamic and strict mocks*.
I propose adding support for generting such mocks as part of the mock generation api
or
Both solution are backward compatible.
I would like to hear your feedback about the idea.
**loose/dynamic - mock that doesn't panic when unregistered method is called
The text was updated successfully, but these errors were encountered: