diff --git a/.gitignore b/.gitignore index 2f61f1f..cbb6c82 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ coverage node_modules npm-debug.log +.nyc_output diff --git a/package.json b/package.json index 553a2fc..c682862 100644 --- a/package.json +++ b/package.json @@ -48,12 +48,14 @@ "jshint": "~2.9.0", "mocha": "~3.0.2", "chai": "~3.0.0", + "nyc": "~13.0.1", "mockery": "~1.4.0", "spooks": "~2.0.0", "cheerio": "~0.19.0" }, "scripts": { "lint": "jshint src --config .jshintrc", - "test": "mocha --ui tdd --reporter spec --recursive --colors test" + "test": "mocha --ui tdd --reporter spec --recursive --colors test", + "coverage": "nyc mocha --ui tdd --reporter spec --recursive --colors test" } }