Skip to content

Commit

Permalink
Add code coverage support with nyc and coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkemp committed Nov 24, 2015
1 parent 64a8d6d commit f9a8be0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
coverage
.nyc_output
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
sudo: false
language: node_js
node_js:
- '0.12'
- '0.10'
after_success: npm run coveralls

# whitelist
branches:
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,24 @@
"vinyl-fs": "^2.2.1"
},
"devDependencies": {
"coveralls": "^2.11.4",
"gulp": "^3.9.0",
"gulp-jscs": "^3.0.1",
"gulp-jshint": "^1.9.0",
"gulp-mocha": "^2.0.0",
"gulp-rename": "^1.2.2",
"mocha": "*",
"mock-gulp-dest": "^0.1.1",
"nyc": "^3.2.2",
"should": "*"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
"test": "mocha",
"coverage": "nyc npm test && nyc report",
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit f9a8be0

Please sign in to comment.