Add testing instructions to README

This commit is contained in:
Jon Gjengset 2018-11-22 19:27:17 -05:00
parent 74fc745618
commit 328144b3f5
No known key found for this signature in database
GPG key ID: D64AC9D67176DC71
2 changed files with 22 additions and 0 deletions

View file

@ -69,6 +69,17 @@ fn fetch_inbox_top() -> imap::error::Result<Option<String>> {
} }
``` ```
## Running the test suite
To run the integration tests, you need to have [GreenMail
running](http://www.icegreen.com/greenmail/#deploy_docker_standalone). The
easiest way to do that is with Docker:
```console
$ docker pull greenmail/standalone:1.5.8
$ docker run -t -i -e GREENMAIL_OPTS='-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose' -p 3025:3025 -p 3110:3110 -p 3143:3143 -p 3465:3465 -p 3993:3993 -p 3995:3995 greenmail/standalone:1.5.8
```
## License ## License
Licensed under either of Licensed under either of

View file

@ -12,6 +12,17 @@
{{readme}} {{readme}}
## Running the test suite
To run the integration tests, you need to have [GreenMail
running](http://www.icegreen.com/greenmail/#deploy_docker_standalone). The
easiest way to do that is with Docker:
```console
$ docker pull greenmail/standalone:1.5.8
$ docker run -t -i -e GREENMAIL_OPTS='-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose' -p 3025:3025 -p 3110:3110 -p 3143:3143 -p 3465:3465 -p 3993:3993 -p 3995:3995 greenmail/standalone:1.5.8
```
## License ## License
Licensed under either of Licensed under either of