To run manually on CI: pm2-run --ecosystem ../ecosystem.json --env staging --cmd "npm test" To run specific test on CI: cd ~/app 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" To run manually on local machine: npm test