Skip to content

Commit 160a414

Browse files
committed
ci(package): add script for coverage
1 parent d98a0e6 commit 160a414

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
},
99
"devDependencies": {
1010
"chai": "^3.2.0",
11+
"istanbul": "^0.4.5",
1112
"jscs": "^1.13.1",
1213
"jshint": "^2.8.0",
1314
"mocha": "^2.2.5",
1415
"posthtml": "^0.11.3"
1516
},
1617
"scripts": {
17-
"test": "npm run lint && mocha",
18+
"test": "npm run lint && mocha -R dot && npm run cover",
1819
"lint": "jshint . && jscs . -v",
20+
"cover": "istanbul cover --report text --report html --report lcov node_modules/mocha/bin/_mocha -- -R tap",
1921
"preversion": "npm test",
2022
"postversion": "git push && git push --tags"
2123
},

0 commit comments

Comments
 (0)