loading...

re: You are mocking it wrong. VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I agree - my philosophy is that when you need to mock you should consider making it an integration test. My point is that even when you absolutely...

When SQLite db is a great choice for in-memory test database (I have about 7k tests like that in my current project, love it so much, but that's a different story), replacing the mail service is not always a good solution. When you test your code against the service which is very different from the one you use in production, what do you really test?

That's the same trade-off: do we verify an integration with the test service, or with the mock? If the test service is close enough to the system you have in prod, it is fast enough, then I would say go for it.

Code of Conduct Report abuse