Skip to content

Commit 06b294c

Browse files
author
Benjamin Coe
committed
add coverage reporting
1 parent a2ebe4f commit 06b294c

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
@@ -9,11 +9,13 @@
99
"author": "Matt Ranney <[email protected]>",
1010
"main": "./index.js",
1111
"scripts": {
12-
"test": "node ./test.js"
12+
"test": "node ./test.js",
13+
"coverage": "nyc npm test && nyc report"
1314
},
1415
"devDependencies": {
15-
"metrics": ">=0.1.5",
1616
"colors": "~0.6.0-1",
17+
"metrics": ">=0.1.5",
18+
"nyc": "^2.2.0",
1719
"underscore": "~1.4.4"
1820
},
1921
"repository": {

0 commit comments

Comments
 (0)