3 ms·
That mocking is tautological is true. However it helps to know that the “wiring” of your code “works” if you’re using a non-statically typed programming languag
by tkiolp4 3y ago
That mocking is tautological is true. However it helps to know that the “wiring” of your code “works” if you’re using a non-statically typed programming language like JS or Python. Unfortunately for the countless of junior engineers I have seen come and go, mocking seems to be the “real” way of testing because they usually don’t know something else besides JS and associated frameworks.
- MattHeard 3y agoWhen I see this criticism of mocks, it appears to me that the critic is primarily used to seeing tests that are either mocking the thing-under-test or don't understand the boundaries of the thing-under-test.
- sanderjd 3y agoAgreed. And the thing-under-test having very unclear boundaries is very common.