Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more serious testing #101

Closed
jonhoo opened this issue Nov 22, 2018 · 1 comment
Closed

Add more serious testing #101

jonhoo opened this issue Nov 22, 2018 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@jonhoo
Copy link
Collaborator

jonhoo commented Nov 22, 2018

While we currently have some amount of inline unit testing, we really want to test this library against a "real" IMAP server. The way to do that is probably to spin up GreenMail on Travis and then do a bunch of operations on the mail server.

I think what we'll want is this:

  • Pull in the GreenMail Docker image on Travis (see this .travis.yml for how)
  • Use lettre to populate the server with a bunch of different e-mails.
  • And then write tests that fetch, move, inspect, delete, expunge, and otherwise test all the things that imap lets you do.
@jonhoo jonhoo added enhancement New feature or request help wanted Extra attention is needed labels Nov 22, 2018
@jonhoo jonhoo added this to the imap 1.0 milestone Nov 22, 2018
@jonhoo jonhoo added the good first issue Good for newcomers label Nov 22, 2018
jonhoo added a commit that referenced this issue Nov 22, 2018
This uses [GreenMail's Docker
image](http://www.icegreen.com/greenmail/#deploy_docker_standalone) to
spin up a real SMTP+IMAP server on Travis, and then runs a series of
integration tests against it by sending e-mails using
[`lettre`](https://crates.io/crates/lettre) and checking that we can
receive them correctly.

A start on #101.
@jonhoo
Copy link
Collaborator Author

jonhoo commented Nov 23, 2018

Moved to jonhoo/rust-imap#101.

@jonhoo jonhoo closed this as completed Nov 23, 2018
mtorromeo pushed a commit to mtorromeo/rust-imap that referenced this issue Nov 28, 2024
This uses [GreenMail's Docker
image](http://www.icegreen.com/greenmail/#deploy_docker_standalone) to
spin up a real SMTP+IMAP server on Travis, and then runs a series of
integration tests against it by sending e-mails using
[`lettre`](https://crates.io/crates/lettre) and checking that we can
receive them correctly.

A start on mattnenterprise#101.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant