the syncing core has a test suite.
this also tests the maildir driver to some degree.
there are no tests for the imap driver, or the underlying socket layer. this would require coding up a faux server which feeds (more or less) fixed data with programmable delays. testing SSL sounds like even more fun ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the syncing core has a test suite.
this also tests the maildir driver to some degree.
there are no tests for the imap driver, or the underlying socket layer. this would require coding up a faux server which feeds (more or less) fixed data with programmable delays. testing SSL sounds like even more fun ...
Hi,
Apologies. I just had a prod around in the sources and didn't see any obvious tests. Admittedly it was only a quick inspection.
With regards to IMAP tests, you may consider mocking? https://en.wikipedia.org/wiki/Mock_object
Cheers