Skip to content

Commit

Permalink
Merge pull request #7 from jplomas/master
Browse files Browse the repository at this point in the history
Fix code coverage reporting via Coveralls
  • Loading branch information
jplomas authored Jul 17, 2020
2 parents 6bd5475 + 39fcd5f commit b9ed5b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ install:
- npm install
script:
- npm run test
- mkdir coverage
- npm run cover
after_script: cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js
deploy:
Expand Down
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint": "eslint .",
"test": "nyc ./node_modules/.bin/mocha --require @babel/register",
"debug": "node --inspect-brk ./dist/index.js",
"cover": "node_modules/istanbul/lib/cli.js cover nyc node_modules/mocha/bin/_mocha -- -R spec test/*.js"
"cover": "nyc --reporter=text ./node_modules/mocha/bin/_mocha test/*.js && nyc --reporter=text-lcov ./node_modules/mocha/bin/_mocha test/*.js > coverage/lcov.info"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -65,6 +65,7 @@
"eslint-plugin-modules": "^1.1.1",
"istanbul": "^0.4.5",
"mocha": "^8.0.1",
"mocha-lcov-reporter": "^1.3.0",
"nodemon": "^1.18.4",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0"
Expand Down

0 comments on commit b9ed5b8

Please sign in to comment.