Skip to content

Commit

Permalink
✅ Add coveralls for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
benthemonkey committed Nov 10, 2015
1 parent b9ee146 commit da1d43b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_js:
- node
- iojs
before_script: npm link
after_success: npm run coveralls
notifications:
slack:
secure: RrEbq2xE1hWdog4AckkaKDnIYYwo5VdjPcFNhRJbn/7KI0fKeZVCKZy1Ww7aaJGth7R7UX415sEV1U6RrjFyhnBb6Sh+rh8fKTvcvuTbENZW45SbtUD+xmgOvb2kfk4PzgD5Q457DpchAZD7W+E+9qr3xI3Uvh4II1uhDmSKiLI=
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"preversion": "npm test",
"pretest": "eslint .",
"test": "mocha tests && mocha tests/rules"
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec tests tests/rules",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"bin": {
"sass-lint": "./bin/sass-lint.js"
Expand Down Expand Up @@ -39,7 +40,9 @@
"util": "^0.10.3"
},
"devDependencies": {
"coveralls": "^2.11.4",
"deep-equal": "^1.0.1",
"istanbul": "^0.4.0",
"mocha": "^2.2.5",
"should": "^7.0.4"
}
Expand Down

0 comments on commit da1d43b

Please sign in to comment.