Skip to content

Commit c38fef6

Browse files
committed
add code coverage
1 parent 814b314 commit c38fef6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
/node_modules
2+
/coverage

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"eslint": "^3.4.0",
1616
"express": "^4.14.0",
1717
"file-loader": "^0.9.0",
18+
"istanbul": "^0.4.5",
1819
"mocha": "^3.0.2",
1920
"mocha-sinon": "^1.1.6",
2021
"should": "^11.1.0",
@@ -41,6 +42,7 @@
4142
"pretest": "npm run -s lint",
4243
"test": "mocha --full-trace --check-leaks",
4344
"beautify": "npm run lint -- --fix",
44-
"travis": "npm test && node middleware.js"
45+
"cover": "istanbul cover node_modules/mocha/bin/_mocha",
46+
"travis": "npm run cover && npm run -s lint"
4547
}
4648
}

0 commit comments

Comments
 (0)