An Exercise in Sensibility – Unit Testing Emails

I’m a testing enthusiast.  I said as much at Knowledge16, and it’s not lip service.  If you haven’t figured out through reading my blog, testing is a subject near and dear to my heart.  It’s important.  It’s something developers need to do every day, for every piece of code they write.  Until now, testing emails has been tough for me.  Sure, I could test code that the email actions ran, but I couldn’t test emails themselves.  That is, until I remembered that ServiceNow can do a lot of cool things if you use the right way.  Today, we’re going to learn how to use it to test emails (specifically inbound email actions) in a way that’s pretty non-intrusive to other users.

Continue reading