Skip to content

Commit

Permalink
adding coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
selfcontained committed May 10, 2014
1 parent 4af376c commit 1ae419b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ results

npm-debug.log
/node_modules
/coverage
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ node_js:
- "0.10"
- "0.8"
- "0.6"
after_script:
- npm run coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://secure.travis-ci.org/selfcontained/deap.svg?branch=master)](http://travis-ci.org/selfcontained/deap)
[![Coverage Status](https://img.shields.io/coveralls/selfcontained/deap.svg)](https://coveralls.io/r/selfcontained/deap?branch=master)
===

[![browser support](https://ci.testling.com/selfcontained/deap.png)](http://ci.testling.com/selfcontained/deap)
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "extend and merge objects, deep or shallow",
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/mocha test/*.test.js"
"test": "./node_modules/.bin/mocha test/*.test.js",
"coverage": "istanbul cover --report html node_modules/.bin/_mocha",
"coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- && cat ./coverage/lcov.info | coveralls"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -34,7 +36,9 @@
"readmeFilename": "README.md",
"devDependencies": {
"mocha": "~1.9.0",
"chai": "~1.6.0"
"chai": "~1.6.0",
"istanbul": "^0.2.8",
"coveralls": "^2.10.0"
},
"testling": {
"browsers": [
Expand Down

0 comments on commit 1ae419b

Please sign in to comment.