Re:Prefer Fakes over Mocks
by rocqua on Wednesday October 14, 2020 @05:59AM
(#24774927)
If this leads to having to spend less time on writing tests in total, things have gone right.
These fakes are much less maintenance heavy. As changes to implementation details don't require changes to tests. Hence, whilst you need to write tests for your tests, you spend less time writing tests in total.
These fakes are much less maintenance heavy. As changes to implementation details don't require changes to tests. Hence, whilst you need to write tests for your tests, you spend less time writing tests in total.