Skip to content

Commit

Permalink
Add coveralls for test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed Jan 25, 2019
1 parent 8b5e03a commit 0b7ef7e
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ npm-debug.log
# IDE
**/.idea

# Tests
coverage

# OS
.DS_Store
.tmp
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#tests
test
coverage

#build tools
.travis.yml
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ node_js:
- "11"
script:
- "npm run lint"
- "npm run test"
# after_success:
# - "npm run coveralls"
- "npm run test-with-coverage"
after_success:
- "npm run coveralls"
sudo: false
42 changes: 41 additions & 1 deletion package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"scripts": {
"lint": "standard **/*.js",
"lint:fix": "standard --fix **/*.js",
"test": "jest test"
"test": "jest test",
"test-with-coverage": "jest --coverage test",
"coveralls": "cat coverage/lcov.info | coveralls"
},
"author": "Gonçalo Neves",
"license": "MIT",
Expand All @@ -31,6 +33,7 @@
"fs-extra": "^7.0.1"
},
"devDependencies": {
"coveralls": "^3.0.2",
"husky": "1.3.1",
"jest": "^23.6.0",
"standard": "^12.0.1"
Expand Down

0 comments on commit 0b7ef7e

Please sign in to comment.