Re:My bag of tricks – loose notes, design patterns, rules-of...
by frobozz on Saturday September 01, 2018 @03:00AM
(#17890649)
Yes. This.
What then happens is that the mocked out functions change what they return, or the order of what they do inside (e.g
so that for a given set of inputs now throws a different exception). Someone forgets to update the mocks. All the tests continue to pass, even though none of the conditions are actually possible in the program.
What then happens is that the mocked out functions change what they return, or the order of what they do inside (e.g so that for a given set of inputs now throws a different exception). Someone forgets to update the mocks. All the tests continue to pass, even though none of the conditions are actually possible in the program.