From cd7d67bb679b4f36050d087664f98c60333f95d4 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Fri, 23 May 2014 15:24:59 +0200 Subject: [PATCH] Adding test coverage. --- .gitignore | 3 ++- package.json | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index dbf08213153..6564f10da86 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -node_modules/* \ No newline at end of file +node_modules/* +coverage/* diff --git a/package.json b/package.json index b8c14863246..33229cda34d 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,12 @@ "gapitoken": "*" }, "devDependencies" : { - "mocha": "*" + "mocha": "*", + "istanbul": "*" }, "scripts": { - "test": "mocha --reporter spec" + "test": "mocha --reporter spec", + "cover": "node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha" }, "license": "Apache 2" }