~soywod/pimalaya#36: 
Find a way to get rid of the docker image for integration tests

For now, integration tests require to have a running IMAP and SMTP server (which is achieve with a docker image of greenmail). It could be great to find a way to spawn an IMAP and SMTP inside Rust to make tests more portable and reliable.

Status
REPORTED
Submitter
~soywod
Assigned to
No-one
Submitted
7 months ago
Updated
5 months ago
Labels
1:email-lib 2:himalaya

~yanganto 7 months ago

Thank you. Could I try to refactor this with the .jar file of greenmail? :)

~soywod 7 months ago

The problem with the .jar file is that you still do not have control on how to start, stop, ready etc. I think that spawning an IMAP server inside the integration test suite is more appropriate in a way that you have control on when to start it, how to wait for it (once ready) and when to kill it.

~yanganto 7 months ago

Sure, Rust should have total control of mailserver to make the test work. It takes some work to set up but Rust can do it. I will do this on weekend. I thinks the hardest part is I am not familiar with sourcehut.

~soywod 7 months ago

Sure, Rust should have total control of mailserver to make the test work. It takes some work to set up but Rust can do it. I will do this on weekend.

You know how to do it? Which crate do you have in mind?

I thinks the hardest part is I am not familiar with sourcehut.

Sourcehut is very simple to use, you can either create patch from their interface (you will need an account) or you can send a patch to the mailing list. I invite you to read the new Himalaya contributing guide.

~soywod 5 months ago

~yanganto, I cannot find your patch anymore, which mailing list did you use?

Register here or Log in to comment, or comment via email.