

17·
7 days agoThere is also this gem in the post:
You shouldn’t be mocking your methods, you should mock your IO. And, similarly, you shouldn’t test methods, but rather software functionality
I totally agree! With containers you might not even have to mock your IO but can check if the application behaves correctly.
I agree if it’s checking if a method gives the right output for a specific input. But i’m more concernd with checking if it issued the right side effects, i.e. called right services and so on and then checking if it made right calls to the mocks.