Skip to content

Commit

Permalink
Add coverage report using istanbul/coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaridmargolin committed Nov 1, 2016
1 parent e4f1465 commit faf7883
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ runners
tmp

/dist
/docs
/docs
/coverage
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start

after_success:
- npm run coveralls
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# inspect-process [![Build Status](https://travis-ci.org/jaridmargolin/inspect-process.png)](https://travis-ci.org/jaridmargolin/inspect-process)
# inspect-process [![Build Status](https://travis-ci.org/jaridmargolin/inspect-process.png)](https://travis-ci.org/jaridmargolin/inspect-process) [![Coverage Status](https://coveralls.io/repos/github/jaridmargolin/inspect-process/badge.svg?branch=master)](https://coveralls.io/github/jaridmargolin/inspect-process?branch=master)

Dead simple debugging for node.js using chrome-devtools.

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"inspect": "bin/inspect.js"
},
"scripts": {
"test": "mocha --no-timeouts"
"test": "mocha --no-timeouts",
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- --no-timeouts",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls"
},
"dependencies": {
"chromedriver": "^2.24.1",
Expand All @@ -29,6 +31,8 @@
},
"devDependencies": {
"chai": "^3.5.0",
"coveralls": "^2.11.14",
"istanbul": "^0.4.5",
"mocha": "^3.1.2",
"test-console": "^1.0.0"
}
Expand Down

0 comments on commit faf7883

Please sign in to comment.