3 ms·
Toward what kind of testing, mind sharing?
by solipsism 10y ago
Toward what kind of testing, mind sharing?
- weberc2 10y agoI'm not sure that there is a name for it, but I construct my unit with its real dependencies (except for I/O or IPC). I've found that mocking ends up tightly coupling your tests to the implementation (not the behavior) of your unit. This means changes to your unit's implementation (that don't change its behavior) create a bunch of test failures. Also, mocking in Go isn't as easy as in Python, so even installing the mocks is a bit of work.