You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/12/23 19:44:20 UTC
[1/2] cordova-lib git commit: CB-8129 Adds 'npm run cover' command to
generate tests coverage report (close #131)
Repository: cordova-lib
Updated Branches:
refs/heads/master f0520b979 -> 8b75ac2e3
CB-8129 Adds 'npm run cover' command to generate tests coverage report (close #131)
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/07a4dabb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/07a4dabb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/07a4dabb
Branch: refs/heads/master
Commit: 07a4dabb072dec286452e27a471d84e48031608e
Parents: f0520b9
Author: Vladimir Kotikov <v-...@microsoft.com>
Authored: Fri Dec 5 16:52:30 2014 +0300
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Dec 23 13:43:59 2014 -0500
----------------------------------------------------------------------
.gitignore | 1 +
cordova-lib/.npmignore | 1 +
cordova-lib/package.json | 8 +++++---
3 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/07a4dabb/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 508c3da..88da92b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+coverage
node_modules
npm-debug.log
../npm-debug.log
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/07a4dabb/cordova-lib/.npmignore
----------------------------------------------------------------------
diff --git a/cordova-lib/.npmignore b/cordova-lib/.npmignore
index a41e142..b499363 100644
--- a/cordova-lib/.npmignore
+++ b/cordova-lib/.npmignore
@@ -1,3 +1,4 @@
spec-cordova
spec-plugman
spec
+coverage
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/07a4dabb/cordova-lib/package.json
----------------------------------------------------------------------
diff --git a/cordova-lib/package.json b/cordova-lib/package.json
index 7e157d9..95101f0 100644
--- a/cordova-lib/package.json
+++ b/cordova-lib/package.json
@@ -41,13 +41,15 @@
"valid-identifier": "0.0.1"
},
"devDependencies": {
- "jshint": "2.5.8",
- "jasmine-node": "1.14.5"
+ "istanbul": "^0.3.4",
+ "jasmine-node": "1.14.5",
+ "jshint": "2.5.8"
},
"scripts": {
"test": "npm run jasmine && npm run jshint",
"jshint": "node node_modules/jshint/bin/jshint src",
- "jasmine": "jasmine-node --captureExceptions --color spec-plugman spec-cordova"
+ "jasmine": "node node_modules/jasmine-node/bin/jasmine-node --captureExceptions --color spec-plugman spec-cordova",
+ "cover": "node node_modules/istanbul/lib/cli.js cover --root src --print detail node_modules/jasmine-node/bin/jasmine-node -- spec-cordova spec-plugman"
},
"contributors": [
{
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/2] cordova-lib git commit: Updates README with description of npm
commands for this package
Posted by ag...@apache.org.
Updates README with description of npm commands for this package
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/8b75ac2e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/8b75ac2e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/8b75ac2e
Branch: refs/heads/master
Commit: 8b75ac2e3179a65a2837365bdeab2f4606e3c80f
Parents: 07a4dab
Author: Vladimir Kotikov <v-...@microsoft.com>
Authored: Tue Dec 9 11:05:03 2014 +0300
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Dec 23 13:44:13 2014 -0500
----------------------------------------------------------------------
README.md | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/8b75ac2e/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index c28cae4..d466bb2 100644
--- a/README.md
+++ b/README.md
@@ -37,3 +37,13 @@ Contains npm modules used primarily by [cordova](https://github.com/apache/cordo
* Navigate to CLI and Plugman directories and link cordova-lib
`cd ../../cordova-cli && npm link cordova-lib && npm install`
`cd ../../cordova-plugman && npm link cordova-lib && npm install`
+
+## NPM commands
+
+This package exposes the following commands;
+
+* `npm run jshint` - runs jshint check against all js files
+* `npm run jasmine` - runs jasmine tests from spec-plugman and spec-cordova directories
+* `npm run cover` - runs istanbul code coverage tool to measure tests coverage
+
+* `npm test` - shortcut for `npm run jshint && npm run jasmine`
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org