Testing in Go: Test Doubles by Example

1 ยท Ilija Eftimov ยท Dec. 16, 2019, 10:19 p.m.
Summary
One of the biggest misconceptions is that doubles are a specific implementation of mocks or other testing constructs that we use in testing. Dummies, mocks, stubs, fakes, and spies ARE test doubles. Test double is the category of these test constructs. Over the years, there has been some confusion around this concept. It is my observation that this confusion arises from the naming of testing constructs that the popular testing frameworks use....