From 629ba5b62a02d92cc6c6b6c0618581272d345415 Mon Sep 17 00:00:00 2001 From: Pat Cavit Date: Thu, 19 May 2016 10:31:09 -0700 Subject: [PATCH] Add cover command (#1054) Using istanbul, and also adding a .gitignore so I can be lazier about things when committing. --- .gitignore | 4 ++++ package.json | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..ff22e95c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +coverage +node_modules +jsconfig.json +.vscode diff --git a/package.json b/package.json index 25327705..aa9d4544 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,12 @@ "main": "index.js", "scripts": { "build": "node bundler/bundler", - "test": "node ospec/bin/ospec" + "test": "node ospec/bin/ospec", + "cover": "istanbul cover --print both ospec/bin/ospec" }, "author": "Leo Horie", - "license": "MIT" + "license": "MIT", + "devDependencies": { + "istanbul": "^0.4.3" + } }