Skip to content

Instantly share code, notes, and snippets.

@xseignard
Last active November 15, 2015 23:56
Show Gist options
  • Save xseignard/b7d4d0a1491fce6e0430 to your computer and use it in GitHub Desktop.
Save xseignard/b7d4d0a1491fce6e0430 to your computer and use it in GitHub Desktop.
Mocha, Istanbul and Codeclimate FTW
{
"scripts": {
"test": "mocha -R spec test/**/*.test.js",
"lint": "jshint src test demo",
"coverage": "istanbul cover --dir ./reports _mocha -- -R spec test/**/*.test.js",
"codeclimate": "CODECLIMATE_REPO_TOKEN=MY_TOKEN codeclimate-test-reporter < reports/lcov.info",
"clean": "rimraf reports",
"ci": "npm run clean && npm run lint && npm run test && npm run coverage && npm run codeclimate"
},
"devDependencies": {
"codeclimate-test-reporter": "^0.1.1",
"istanbul": "^0.4.0",
"jshint": "^2.9.1-rc1",
"mocha": "^2.3.3",
"rimraf": "^2.4.3",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment