chibenwa commented on a change in pull request #654:
URL: https://github.com/apache/james-project/pull/654#discussion_r708919237
##########
File path: docs/modules/development/pages/deployment-tests.adoc
##########
@@ -0,0 +1,30 @@
+= How to run deployment Tests
+:navtitle: Deployment tests
+
+We wrote some MPT (James' Mail Protocols Tests subproject) deployment tests to
validate a James
+deployment.
+
+It uses the External-James module, that uses environment variables to locate a
remote
+IMAP server and run integration tests against it.
+
+For that, the target James Server needs to be configured with a domain
`domain` and a user `imapuser`
+with password `password`. Read above documentation to see how you can do this.
+
+You have to run MPT tests inside docker. As you need to use maven, the
simplest option is to
+use james/parent image, and override the entry point ( as git and maven are
already configured
+there ) :
+
+ $ export JAMES_ADDRESS=127.0.0.1
+ $ export JAMES_IMAP_PORT=143
+ $ export JAMES_SMTP_PORT=25
+
+ $ mvn -T 1C -DskipTests -pl
org.apache.james:apache-james-mpt-external-james -am install
+ $ mvn -T 1C -pl org.apache.james:apache-james-mpt-external-james test
-Pintegration-tests\
Review comment:
```suggestion
$ mvn -T 1C -pl org.apache.james:apache-james-mpt-external-james test
-Pintegration-tests
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]