Skip to content

Instantly share code, notes, and snippets.

@nemtsov
Created May 1, 2013 05:05
Show Gist options
  • Save nemtsov/5493831 to your computer and use it in GitHub Desktop.
Save nemtsov/5493831 to your computer and use it in GitHub Desktop.
Testing and test-coverage scripts in the package.json. Prereq: `npm --save-dev i mocha should istanbul`.
"scripts": {
"test": "mocha -r should --recursive",
"test-watch": "mocha -r should --recursive -w -G -R min",
"coverage": "istanbul cover _mocha -- -r should --recursive"
}
@nemtsov
Copy link
Author

nemtsov commented May 1, 2013

Note: prereq. npm --save-dev i mocha should istanbul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment