From 06b294c630d9695eba250aba1c57d2e51ab81e54 Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Mon, 25 May 2015 16:25:47 -0700 Subject: [PATCH] add coverage reporting --- .gitignore | 2 ++ package.json | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 dc1c39abd2..b02f7d1736 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,13 @@ "author": "Matt Ranney ", "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": {