Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #1350 from espy/tests/coverage
Browse files Browse the repository at this point in the history
Add Istanbul for coverage and coveralls
  • Loading branch information
gr2m committed Jun 12, 2017
2 parents b76f745 + e09133b commit 0679ed7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
node_modules
.hubot_history
.node-version
.nyc_output/
npm-debug.log
coverage/
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -6,3 +6,4 @@ node_js:
notifications:
email: false
sudo: false
after_success: npm run coverage
2 changes: 2 additions & 0 deletions README.md
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/espy/hubot.svg?branch=master)](https://travis-ci.org/espy/hubot) [![Coverage Status](https://coveralls.io/repos/github/espy/hubot/badge.svg?branch=master)](https://coveralls.io/github/espy/hubot?branch=master)

# Hubot

Hubot is a framework to build chat bots, modeled after GitHub's Campfire bot of the same name, hubot.
Expand Down
11 changes: 7 additions & 4 deletions package.json
Expand Up @@ -26,12 +26,14 @@
"scoped-http-client": "0.11.0"
},
"devDependencies": {
"chai": "~2.1.0",
"coveralls": "^2.13.1",
"mocha": "^2.1.0",
"mockery": "^1.4.0",
"sinon-chai": "^2.8.0",
"nyc": "^11.0.2",
"sinon": "~1.17.0",
"standard": "^10.0.2",
"chai": "~2.1.0"
"sinon-chai": "^2.8.0",
"standard": "^10.0.2"
},
"engines": {
"node": ">= 0.8.x",
Expand All @@ -44,7 +46,8 @@
"scripts": {
"start": "bin/hubot",
"pretest": "standard",
"test": "mocha",
"test": "nyc --reporter=html --reporter=text mocha",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"test:smoke": "node src/**/*.js"
}
}

0 comments on commit 0679ed7

Please sign in to comment.