This is an automated email from the ASF dual-hosted git repository.
raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-create.git
The following commit(s) were added to refs/heads/master by this push:
new eb2a118 Determine code coverage during tests (#17)
eb2a118 is described below
commit eb2a118961d71705c0e47c81c95029070073e987
Author: Raphael von der GrĂ¼n <[email protected]>
AuthorDate: Sun Jun 17 20:53:00 2018 +0200
Determine code coverage during tests (#17)
---
.gitignore | 3 ++-
package.json | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
index 5e0f4b6..fd547b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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/
diff --git a/package.json b/package.json
index 6893db8..db8a1b4 100644
--- a/package.json
+++ b/package.json
@@ -44,12 +44,14 @@
"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": [
{
--
To stop receiving notification emails like this one, please contact
[email protected].
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]