Skip to content

Commit 029ab78

Browse files
collierrgbsitisfisemarco-c
authored andcommitted
Upload coverage to coveralls (#502)
Fixes #311
1 parent f8eb61b commit 029ab78

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ before_script:
3131
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
3232
script:
3333
- $NPM test
34+
- $NPM run coveralls
3435
sudo: required

package-lock.json

Lines changed: 35 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"download-browser": "node --harmony ./test/helpers/download-test-browsers.js",
1111
"lint": "node ./node_modules/eslint/bin/eslint --ignore-path .gitignore '.'",
1212
"pretest": "npm run lint && npm run download-browser",
13+
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
1314
"test": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --ui tdd test/test*"
1415
},
1516
"repository": {
@@ -39,6 +40,7 @@
3940
"devDependencies": {
4041
"chalk": "2.4.2",
4142
"chromedriver": "76.0.1",
43+
"coveralls": "3.0.6",
4244
"del": "5.1.0",
4345
"eslint": "6.3.0",
4446
"eslint-config-airbnb": "18.0.1",
@@ -47,6 +49,7 @@
4749
"istanbul": "0.4.5",
4850
"mkdirp": "0.5.1",
4951
"mocha": "6.2.0",
52+
"mocha-lcov-reporter": "1.3.0",
5053
"portfinder": "1.0.24",
5154
"selenium-assistant": "5.4.0",
5255
"semver": "6.3.0",

0 commit comments

Comments
 (0)