Should we move away from mocks? Oddly the conclusi...
# platform-culture
n
Should we move away from mocks? Oddly the conclusion I came is that stubs are fine, mocks are not. Anything you have to mock should wait for integration testing.
e
Martin Fowler’s article equates stubs with state testing, and mocks with behavior testing. More recently, unit testing in general happens pre-integration and is focused on testing state rather than behavior. Behavior testing evolved into testing ‘user flows’ which are the most common pathways users take through the system. This typically happens on a full system instance, either staging or prod (which is its own debate). would be great to hear other’s thoughts / opinions on this!