Re:TDD Doesn't Force Good Design
by geewee on Tuesday September 05, 2023 @04:55AM
(#37389402)
I think it depends heavily on what you're mocking and what the code you're testing looks like.
I think Martin Fowler has a nice dichotomy where he splits tests up into solitary (generally using mocks for deps) and sociable (generally using real code for dependencies): https://martinfowler.com/bliki/UnitTest.html
I think Martin Fowler has a nice dichotomy where he splits tests up into solitary (generally using mocks for deps) and sociable (generally using real code for dependencies): https://martinfowler.com/bliki/UnitTest.html