2 ms·
I would like to keep an open mind about this because I like the theory of decoupling. But the only thing I use mocking/stubbing for is to mock out external ser
by 100k 15y ago
I would like to keep an open mind about this because I like the theory of decoupling.
But the only thing I use mocking/stubbing for is to mock out external services that make tests unreliable and slow (like HTTP requests).
Expectation based tests seem particularly easy to mis-use. Who cares how many times a method is called?