3 ms·
Maybe more eloquently put: https://martinfowler.com/articles/mocksArentStubs.html https://martinfowler.com/articles/mocksArentStubs.html
by sethammons 3y ago
Maybe more eloquently put:
https://martinfowler.com/articles/mocksArentStubs.html https://martinfowler.com/articles/mocksArentStubs.html
- TeMPOraL 3y agoMocks, fakes, stubs. Every time I read this article I end up more confused than I was before.
- Ma8ee 3y agoI like Uncle Bob’s explanation: https://blog.cleancoder.com/uncle-bob/2014/05/14/TheLittleMocker.html https://blog.cleancoder.com/uncle-bob/2014/05/14/TheLittleMo...
- sethammons 3y agoThat is a solid way to introduce the different test doubles. Thanks for the link. I agree, stubs and spies are my daily bread. I also use fakes very regularly. I hardly ever use mocks, for the same reasons in the post.