4 ms·
I've been thinking about this for a while; change code vs mocking. I think what I've been looking for is a justification for doing the first and I agree with t
by andy_ppp 11y ago
I've been thinking about this for a while; change code vs mocking. I think what I've been looking for is a justification for doing the first and I agree with the design argument here; it feels strange reaching into underlying code so supply plugable paths for not just tests but all code to be able to change the part that you were about to mock. It'll lead to a more flexible system overall and one that the tests are more explicit and use less magic.