You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2018/10/01 07:33:33 UTC
[cordova-fetch] branch master updated: Collect test coverage during
`npm test` (#48)
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-fetch.git
The following commit(s) were added to refs/heads/master by this push:
new fef644a Collect test coverage during `npm test` (#48)
fef644a is described below
commit fef644a773c29d6415abd51014864f5bd50e0036
Author: Ken Naito <fi...@gmail.com>
AuthorDate: Mon Oct 1 16:33:29 2018 +0900
Collect test coverage during `npm test` (#48)
---
.gitignore | 2 ++
package.json | 18 ++++++++++++++----
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
index d5f19d8..73e8618 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
node_modules
package-lock.json
+.nyc_output/
+coverage/
diff --git a/package.json b/package.json
index 02955b3..0d3fef6 100644
--- a/package.json
+++ b/package.json
@@ -39,15 +39,25 @@
"eslint-plugin-standard": "^3.1.0",
"file-url": "^2.0.2",
"jasmine": "^2.4.1",
- "rewire": "^4.0.1"
+ "rewire": "^4.0.1",
+ "nyc": "^12.0.2"
},
"scripts": {
- "test": "npm run eslint && npm run jasmine",
- "eslint": "eslint .",
- "jasmine": "jasmine spec/fetch.spec.js spec/fetch-unit.spec.js"
+ "test": "npm run eslint && npm run cover",
+ "cover": "nyc jasmine",
+ "eslint": "eslint --ignore-path .gitignore ."
},
"engines": {
"node": ">= 6",
"npm": ">= 3"
+ },
+ "nyc": {
+ "include": [
+ "index.js"
+ ],
+ "reporter": [
+ "lcov",
+ "text"
+ ]
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org