diff --git a/.gitignore b/.gitignore index 6a59b3d64c..f351fac36f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ node_modules .tern-port +.nyc_output +coverage diff --git a/package.json b/package.json index 8aba1e91e3..21f563ffe1 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,13 @@ "license": "MIT", "main": "./index.js", "scripts": { - "test": "node ./test.js" + "test": "node ./test.js", + "coverage": "nyc npm test && nyc report" }, "devDependencies": { - "metrics": ">=0.1.5", "colors": "~0.6.0-1", + "metrics": ">=0.1.5", + "nyc": "^2.2.0", "underscore": "~1.4.4" }, "repository": {