From b56e4d26a85aa78263c33fed1a2be3d00f9c6085 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Thu, 31 Oct 2013 23:29:17 +0000 Subject: [PATCH] Add code coverage metrics --- .gitignore | 1 + package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a72b52e..634d1b1 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ results npm-debug.log node_modules +coverage diff --git a/package.json b/package.json index bf6fda7..6910466 100644 --- a/package.json +++ b/package.json @@ -32,12 +32,13 @@ "://main": "./bin/nodemon.js", "main": "./test/fixtures/app.js", "scripts": { - "test": "mocha --ui bdd --reporter spec test/**/*.test.js" + "test": "istanbul cover _mocha -- --ui bdd --reporter spec test/**/*.test.js" }, "devDependencies": { "connect": "*", "mocha": "~1.12.0", - "should": "~1.2.2" + "should": "~1.2.2", + "istanbul": "~0.1.44" }, "dependencies": { "update-notifier": "~0.1.5"