2 ms·
I'm not huge on mocks, but I usually just mock out an email service (which has been manually tested) - that is, I don't test it end-to-end. Everything apart fro
by GordonS 7y ago
I'm not huge on mocks, but I usually just mock out an email service (which has been manually tested) - that is, I don't test it end-to-end. Everything apart from the actual sending is tested though, such as testing that the email subject and body that would be sent are as expected.
In the past I've also used a local test SMTP server, similar to the service in the article, but much more basic (I forget the name of it now).