3 ms·
I would argue that if you need mocks, the code isn’t well suited to unit testing and you’re better off with integration tests. If you want to unit test it, the
by wtetzner 5y ago
I would argue that if you need mocks, the code isn’t well suited to unit testing and you’re better off with integration tests.
If you want to unit test it, then refactor in such a way that you no longer need mocks.