To run manually on CI: export BOX_VERSION= pm2-run --ecosystem ../ecosystem.json --env staging --cmd "npm test" To run specific test on CI: cd ~/app export BOX_VERSION= pm2-run --ecosystem ../ecosystem.json --env staging --cmd "DEBUG=superagent-sync,e2e:* DEBUG_COLORS=true ./node_modules/.bin/mocha --bail test/new-user-test.js"