From 75e18c65bcb44549f700d74800ba349772fb2b61 Mon Sep 17 00:00:00 2001 From: Vasil Velichkov Date: Tue, 26 Apr 2016 19:28:37 +0300 Subject: [PATCH] Add code coverage report with Istanbul To generate the report run $npm run-script cover --- .gitignore | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 193c832..ef4cc1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules +coverage .idea tmp \ No newline at end of file diff --git a/package.json b/package.json index 0305ffc..4e6553e 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ }, "homepage": "https://github.com/larvit/larvitsmpp", "scripts": { + "cover": "istanbul cover _mocha", "test": "mocha" }, "license": "MIT"