Determine code coverage during tests (#17)
authorRaphael von der Grün <raphinesse@gmail.com>
Sun, 17 Jun 2018 18:53:00 +0000 (20:53 +0200)
committerGitHub <noreply@github.com>
Sun, 17 Jun 2018 18:53:00 +0000 (20:53 +0200)
.gitignore
package.json

index 5e0f4b6..fd547b8 100644 (file)
@@ -14,4 +14,5 @@ npm-debug.log
 config.gypi
 CVS
 node_modules/*
-node_module/.bin/*
\ No newline at end of file
+node_module/.bin/*
+.nyc_output/
index 6893db8..db8a1b4 100644 (file)
     "eslint-plugin-promise": "^3.5.0",
     "eslint-plugin-standard": "^3.0.1",
     "jasmine": "^3.1.0",
+    "nyc": "^11.7.3",
     "rewire": "^4.0.1"
   },
   "scripts": {
-    "test": "npm run eslint && npm run jasmine",
+    "test": "npm run eslint && npm run cover",
     "eslint": "eslint index.js spec/create.spec.js",
-    "jasmine": "jasmine spec/create.spec.js"
+    "jasmine": "jasmine spec/create.spec.js",
+    "cover": "nyc -x spec/ npm run jasmine"
   },
   "contributors": [
     {