Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Testing email send and Test::MockObject

by pernod (Chaplain)
on Oct 08, 2004 at 07:57 UTC ( #397569=note: print w/replies, xml ) Need Help??

in reply to Testing email send

Another alternative is using chromatic's Test::MockObject to simulate the mail server. Mocking allows you to unit test your mail generating component independently from the mail server, and you will be able to trap the output of your code to verify the contents of your mail.

This will not be enough, though, as you will need to test the component in combination with the mail server too. The unit tests will verify the interfaces between the two. I don't think mocking is the complete solution to your problem, but it will get you closer to your goal.

Good luck!

Mischief. Mayhem. Soap.

Update: Fixed som typos

  • Comment on Re: Testing email send and Test::MockObject

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://397569]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2019-08-24 20:58 GMT
Find Nodes?
    Voting Booth?

    No recent polls found