Skip to content

Commit 8ea0333

Browse files
committed
Add code coverage
1 parent 75809a5 commit 8ea0333

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
!vendor/*.js
77
*.js.map
88

9+
coverage
910
lib-cov
1011
*.seed
1112
*.log

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ module.exports = function(grunt) {
165165
grunt.registerTask("pack", [
166166
"clean",
167167
"ts:release_build",
168+
"shell:npm_test",
168169

169170
"set_package_version",
170171
"shell:build_package",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"main": "./lib/nativescript-cli.js",
1212
"scripts": {
13-
"test": "node_modules\\.bin\\_mocha --ui mocha-fibers --recursive --reporter spec --require test/test-bootstrap.js --timeout 60000 test/ lib/common/test/unit-tests",
13+
"test": "node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha -- --ui mocha-fibers --recursive --reporter spec --require test/test-bootstrap.js --timeout 60000 test/ lib/common/test/unit-tests",
1414
"postinstall": "node postinstall.js",
1515
"preuninstall": "node preuninstall.js"
1616
},
@@ -88,6 +88,7 @@
8888
"grunt-shell": "1.1.2",
8989
"grunt-ts": "4.2.0",
9090
"grunt-tslint": "2.4.0",
91+
"istanbul": "0.3.19",
9192
"mocha": "2.2.5",
9293
"mocha-fibers": "https://github.com/Icenium/mocha-fibers/tarball/master",
9394
"should": "7.0.2",

0 commit comments

Comments
 (0)