From 2e45d2222c806dfa94a0f8f8af465a0636a02030 Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Mon, 25 May 2015 16:55:32 -0700 Subject: [PATCH] add coverage reporting using nyc --- .gitignore | 2 ++ package.json | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index fd4f2b06..88861393 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ node_modules .DS_Store +.nyc_output +coverage diff --git a/package.json b/package.json index 01a2d729..73df8a7a 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,14 @@ "uuid": "./bin/uuid" }, "scripts": { - "test": "node test/test.js" + "test": "node test/test.js", + "coverage": "nyc npm test && nyc report" }, "lib" : ".", "main" : "./uuid.js", "repository" : { "type" : "git", "url" : "https://github.com/broofa/node-uuid.git" }, "version" : "1.4.2", - "license" : "MIT" + "license" : "MIT", + "devDependencies": { "nyc": "^2.2.0" } + }