Skip to content

Commit

Permalink
Addes coverage with nyc and coveralls
Browse files Browse the repository at this point in the history
Closes #2191
  • Loading branch information
Benjamin Coe authored and megawac committed Jun 4, 2015
1 parent 427fa96 commit d04b7e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@ node_modules
*.log
*.idea
*.swp
nyc_output
coverage
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -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
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -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",
Expand Down

1 comment on commit d04b7e9

@jdalton
Copy link
Contributor

@jdalton jdalton commented on d04b7e9 Jun 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bout time for a bump?

Please sign in to comment.