Skip to content

Commit

Permalink
Add coverage & coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
bencevans committed Feb 5, 2014
1 parent 8f4c222 commit 3da794b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,3 +13,4 @@ results

npm-debug.log
node_modules
coverage
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -9,4 +9,6 @@ env:
before_script:
- npm install -g grunt-cli
script:
- grunt travis
- grunt travis
after_script:
- if [ "$TEST_CMD" = 'mocha' ]; then npm run coveralls; fi
14 changes: 8 additions & 6 deletions package.json
Expand Up @@ -3,12 +3,11 @@
"version": "0.1.0",
"description": "Open input and output streams given providers and small config",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "./node_modules/.bin/grunt"
},
"test": "./node_modules/.bin/grunt",
"cover": "./node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- -u exports -R spec test/providers/*.js",
"coveralls": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -- -u exports --report lcovonly -- -R spec -- test/providers/*.js && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf ./coverage"
},
"repository": {
"type": "git",
"url": "git://github.com/webcast-io/iostreams.git"
Expand Down Expand Up @@ -39,6 +38,9 @@
"devDependencies": {
"grunt": "~0.4.2",
"grunt-mocha-test": "~0.8.1",
"grunt-contrib-jshint": "~0.8.0"
"grunt-contrib-jshint": "~0.8.0",
"istanbul": "~0.2.4",
"coveralls": "~2.7.1",
"mocha": "~1.15.1"
}
}

0 comments on commit 3da794b

Please sign in to comment.