Skip to content

Commit

Permalink
Add coverage reporter and coveralls publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
Nols1000 committed Jan 29, 2019
1 parent f4f6a25 commit 9abce25
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ node_js:
- stable

script:
- npm run test
- npm run test:ci
- npm run build

deploy:
Expand Down
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ module.exports = {
"setupFiles": [
"jest-webextension-mock"
],
"coverageReporters": [
"lcov",
"text"
],
}
32 changes: 32 additions & 0 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
"build:dev": "webpack --display-error-details --progress --colors",
"build:prod": "webpack --config webpack.config.prod.js --display-error-details --progress --colors",
"clean": "rimraf dist",
"coverage": "jest --coverage",
"test": "jest"
"test": "jest --coverage --watchAll",
"test:ci": "jest --coverage --coverageReporters=text-lcov | coveralls"
},
"author": "Nils-Börge Margotti",
"license": "GPL-3.0-only",
"devDependencies": {
"@types/redux": "^3.6.0",
"coveralls": "^3.0.2",
"jest": "^24.0.0",
"jest-webextension-mock": "^3.5.0",
"rimraf": "^2.6.3",
Expand Down

0 comments on commit 9abce25

Please sign in to comment.