If you are using nodejs
, in your package.json
under scripts
global (-g)
installations: "test": "mocha server-test"
or "test": "mocha server-test/**/*.js"
for subdocumentsproject
installations: "test": "node_modules/mocha/bin/mocha server-test"
or "test": "node_modules/mocha/bin/mocha server-test/**/*.js"
for subdocumentsThen just run your tests normally as npm test