4 ms·
That strict definition of “unit” testing (advocating for isolationism and banning collaboration with dependencies) is too narrow for my taste. DI can make a lo
by lochlan 9y ago
That strict definition of “unit” testing (advocating for isolationism and banning collaboration with dependencies) is too narrow for my taste. DI can make a lot of sense, but I don’t think that means you have to mock everything (inviting a maintenance cost) for the sake of purity.
Here’s Fowler’s take: https://martinfowler.com/bliki/UnitTest.html https://martinfowler.com/bliki/UnitTest.html