Skip to content

Commit

Permalink
✅ adding code coverage via codecov (#15)
Browse files Browse the repository at this point in the history
* ✅ adding code coverage via codecov
* 🙈 updating npmignore
  • Loading branch information
filmaj authored Jul 11, 2019
1 parent 1cc7e5a commit 0bfc8d0
Show file tree
Hide file tree
Showing 6 changed files with 222 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
node_modules/
test/tmp
coverage
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
test/
.eslintrc.js
coverage
codecov.yaml
.travis.yml
appveyor.yml
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ python: "3.6"
node_js: "lts/*"
before_install:
- npm i -g npm@latest
- npm i -g codecov
install:
- npm i
script:
- npm test
- npm run coverage
- codecov
6 changes: 6 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
precision: 2
round: down
range: "25...75"

comment: off
206 changes: 206 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"test": "npm run lint && npm run test:unit && npm run test:integration",
"test:unit": "tape test/unit-tests.js | tap-spec",
"test:integration": "tape test/integration-tests.js | tap-spec",
"coverage": "istanbul cover tape test/unit-tests.js",
"lint": "eslint . --fix --ignore-pattern node_modules"
},
"repository": {
Expand All @@ -31,6 +32,7 @@
},
"devDependencies": {
"eslint": "^5.16.0",
"istanbul": "^0.4.5",
"mkdirp": "^0.5.1",
"sinon": "^7.3.2",
"tap-spec": "^5.0.0",
Expand Down

0 comments on commit 0bfc8d0

Please sign in to comment.