3 ms·
Creating Your Own Fakes Instead of Using Mocking Libraries
- freedude 3y ago" I want to explain some of the terms that fly around like fake, mock, shim or stub. Fake is a general term and can include stubs, mocks, and shims. Stub provides pre-set answers to calls. Mock checks interactions and provides pre-set answers. Shim diverts or changes the behavior of existing calls. " ... " Creating your own fakes comes with a cost. You have to maintain them... "