Permalink
Browse files

Addes coverage with nyc and coveralls

Closes #2191
  • Loading branch information...
1 parent 427fa96 commit d04b7e9cf10c6909ee5e74eaef8cc1177c80d1c3 @bcoe bcoe committed with megawac May 25, 2015
Showing with 8 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +2 −1 .travis.yml
  3. +4 −0 package.json
View
@@ -3,3 +3,5 @@ node_modules
*.log
*.idea
*.swp
+nyc_output
+coverage
View
@@ -29,4 +29,5 @@ env:
global:
- secure: bDZSBQfqr21hCayjcZ20IxrV6+XGhxQPFIfwWqEKLrF93Gu8LLVjZRxXE/mE8I8N4Z5WtDNb4ZHrm/TTzmcPa5MuHgIxEdknQCncobH8oimwc83SHwEPk6okeNKl39VlCjvvnmoe/V/KpnknuYn3Rqghtl/Uv9KLpCwskwjTtcw=
- secure: SRECgXuwcZTcD3GVxTS2bYNgRyye4vq6BLrV2PH9FyNenowsKQR2EwlC/dppc1Q8NWMgv79J/R96q9JOFh+mEH9L5dlBb2yhnGH8amVeM/ChAJHT/F8YktKM453uVpz5fR00QcCQDDUOx6Pvx374ID0OKNpWKAkQBWA9mPTsLnE=
- matrix: BROWSER=false
+ matrix: BROWSER=false
+after_success: npm run coveralls
View
@@ -17,15 +17,19 @@
"main": "underscore.js",
"version": "1.8.3",
"devDependencies": {
+ "coveralls": "^2.11.2",
"docco": "*",
"eslint": "0.21.x",
"karma": "~0.12.31",
"karma-qunit": "~0.1.4",
+ "nyc": "^2.1.3",
"qunit-cli": "~0.2.0",
"uglify-js": "2.4.x"
},
"scripts": {
"test": "npm run test-node && npm run lint",
+ "coverage": "nyc npm run test-node && nyc report",
+ "coveralls": "nyc npm run test-node && nyc report --reporter=text-lcov | coveralls",
"lint": "eslint --reset underscore.js test/*.js",
"test-node": "qunit-cli test/*.js",
"test-browser": "npm i karma-phantomjs-launcher && ./node_modules/karma/bin/karma start",

1 comment on commit d04b7e9

@jdalton
Contributor
jdalton commented on d04b7e9 Jun 5, 2015

bout time for a bump?

Please sign in to comment.