Skip to content

Commit 9b02ae6

Browse files
committed
Merge pull request #758 from bcoe/coverage
adds coverage reporting using nyc bin
2 parents e2e790b + 06b294c commit 9b02ae6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules
22
.tern-port
3+
.nyc_output
4+
coverage

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
"license": "MIT",
1111
"main": "./index.js",
1212
"scripts": {
13-
"test": "node ./test.js"
13+
"test": "node ./test.js",
14+
"coverage": "nyc npm test && nyc report"
1415
},
1516
"devDependencies": {
16-
"metrics": ">=0.1.5",
1717
"colors": "~0.6.0-1",
18+
"metrics": ">=0.1.5",
19+
"nyc": "^2.2.0",
1820
"underscore": "~1.4.4"
1921
},
2022
"repository": {

0 commit comments

Comments
 (0)