4 ms·
You are doing interface/function level testing and calling it unit testing. That's what industry converged on, that a function/method = a unit, but it apparent
by snidane 6y ago
You are doing interface/function level testing and calling it unit testing.
That's what industry converged on, that a function/method = a unit, but it apparently used to be that a module meant to be a unit.
It can be that both interfaces and modules can be considered a "bag of functions".
Seems like a lot of confusion about unit testing, mocking and DI stems from this historical shift.
I believe that interface/method level testing is too granular and mostly results in overfitted tests. Testing implementation, not behaviour. Which can be useful for some algorithm package for example, but probably not so much applicable
to typical business logic code.
TDD: where did it all go wrong.
https://youtu.be/EZ05e7EMOLM https://youtu.be/EZ05e7EMOLM