Skip to content

Commit

Permalink
Code coverage using Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
wahni committed Jan 30, 2018
1 parent 6839259 commit f50b3fe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ lib-cov
# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
language: node_js
node_js:
- node
after_success: npm run coverage
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"version": "2.0.2",
"description": "Post app reviews to Slack",
"scripts": {
"lint": "standard",
"test": "standard && npm run test-unit",
"test-unit": "NODE_ENV=test mocha --require co-mocha '*.spec.js'"
"test": "npm run lint && npm run test-unit",
"test-unit": "nyc mocha --require co-mocha",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "standard"
},
"keywords": [
"reviews",
Expand All @@ -24,7 +25,10 @@
"devDependencies": {
"chai": "^4.1.2",
"co-mocha": "^1.2.1",
"coveralls": "^3.0.0",
"mocha": "^5.0.0",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^11.4.1",
"sinon": "^4.2.2",
"sinon-chai": "^2.14.0",
"standard": "^10.0.3"
Expand Down
2 changes: 1 addition & 1 deletion index.spec.js → test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const sinonChai = require('sinon-chai')

const Watcher = require('rss-watcher')

const reviews = require('./index')
const reviews = require('../index')

before(function () {
chai.use(sinonChai)
Expand Down

0 comments on commit f50b3fe

Please sign in to comment.