2 ms·
How do you test your mocks to ensure they match real SMTP/IMAP/POP client behavior? If the same developers write the clients and the mocks, then it's likely th
by eesmith 9y ago
How do you test your mocks to ensure they match real SMTP/IMAP/POP client behavior?
If the same developers write the clients and the mocks, then it's likely that both components implement identical misunderstandings, if there are misunderstandings.
- a-nikolaev 9y agoYou can run your program with a testing set of users, where all potential receivers of your mock messages are your own emails. Is it not enough?
- eesmith 9y agoIt's what I do. However, I rarely integrate with email, and when I do it's for in-house email addresses. That said, I was giving an example of why a mock might not be an appropriate solution, and not on the wider topic of what "enough" might be. I can certainly think that testing the ability to send emails to, say, 5,000 different addresses, and check that they are received, might be easier with something like this system.