One of the best tips on Coderwall is how you can run your nodejs tests using npm:
as long as you have the following in your package.json
"test": "node test/testrunner.js"
you can see a really nice succinct description here https://coderwall.com/p/pcvwuw
If you have more than one way to run your tests, generating coverage maps for example, then a lot of people suggest that you write a custom make file.
If you're like me and you like to keep the number of tools/files you're using to a minimum then here is how you can maintain all those test running scripts in one place using the package.json
"test-coverage": "jscoverage lib lib-cov && mocha --reporter html-cov > code-coverage.html",
"anyCrazyCommand": "echo dont mind if i do"
and then you execute them with these commands
npm run-script test
npm run-scirpt test-coverage
npm run-script anyCrazyCommand
As simple as that!