Skip to content

Commit be8776a

Browse files
committed
coverall.io support ( for test coverage )
1 parent 73a9ffd commit be8776a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ node_js:
44
- "5"
55
- "4"
66
- "0.12"
7+
script:
8+
- npm run test-travis

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"test": "test"
88
},
99
"scripts": {
10+
"test-travis": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
1011
"test": "mocha test",
1112
"prebuild": "npm test",
1213
"build": "webpack --config webpack.config.js"
@@ -28,7 +29,10 @@
2829
"homepage": "https://github.com/SimplePEG/JavaScript#readme",
2930
"devDependencies": {
3031
"chai": "^3.5.0",
32+
"coveralls": "^2.11.9",
33+
"istanbul": "^0.4.4",
3134
"mocha": "^2.4.5",
35+
"mocha-lcov-reporter": "^1.2.0",
3236
"recursive-readdir-sync": "^1.0.6",
3337
"webpack": "^1.13.1"
3438
}

0 commit comments

Comments
 (0)