E

e2e-test

Cloudron End to End tests

Name Last Update
logs Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.jshintrc Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
appstore.js Loading commit data...
cloudron.js Loading commit data...
common.js Loading commit data...
deploy.json Loading commit data...
digitalocean.js Loading commit data...
e2etestrunner.js Loading commit data...
imap-probe.js Loading commit data...
mailer.js Loading commit data...
package.json Loading commit data...
parallel_test.sh Loading commit data...
prepareDeployTarget.sh Loading commit data...
shell.js Loading commit data...
tcpbomb.js Loading commit data...

To run manually on CI

cd ~/app
export BOX_VERSION=<version_to_test>

pm2-run --ecosystem ../ecosystem.json --env staging --cmd "npm test"

                OR

pm2-run --ecosystem ../ecosystem.json --env staging --cmd ./parallel_test.sh

To run specific test on CI

cd ~/app
export BOX_VERSION=<version_to_test>
pm2-run --ecosystem ../ecosystem.json --env staging --cmd "DEBUG=imap-probe,superagent-sync,e2e:* DEBUG_COLORS=true ./node_modules/.bin/mocha --bail test/new-user-test.js"

AWS Keys

AWS_STAGING_ACCESS_KEY and AWS_STAGING_SECRET_KEY exist for the release tool to make a new release.