Skip to content

Commit

Permalink
Added code coverage reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Nov 4, 2015
1 parent 34ef91c commit 5469269
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/node_modules/**
npm-debug.log
coverage/
3 changes: 2 additions & 1 deletion .jshintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ appengine/kraken/public/components/**
appengine/sails/config/**
appengine/sails/tasks/**
appengine/sails/assets/**
**/node_modules/**
**/node_modules/**
coverage/
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ before_install:
install:
#Add app specific setup here
#Use '-q' to disable interactive prompts

after_success:
- npm run coveralls
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,32 @@
"name": "nodejs-docs-samples",
"version": "0.0.1",
"description": "Samples used in the nodejs documentation on cloud.google.com",
"main": "index.js",
"scripts": {
"jshint": "jshint --exclude-path=.jshintignore .",
"mocha": "mocha --timeout 10000 --recursive",
"test": "npm run jshint && npm run mocha"
"cover": "istanbul cover --hook-run-in-context node_modules/mocha/bin/_mocha -- --timeout 10000 --recursive",
"coveralls": "cat ./coverage/lcov.info | node_modules/.bin/coveralls",
"test": "npm run jshint && npm run cover"
},
"author": "jerjou@google.com",
"license": "Apache 2",
"author": "Google Inc.",
"contributors": [
{
"name": "Jerjou",
"email": "jerjou@google.com"
},
{
"name": "Jason Dobry",
"email": "jason.dobry@gmail.com"
}
],
"license": "Apache Version 2.0",
"private": true,
"dependencies": {
"googleapis": "~2.1.3"
},
"devDependencies": {
"coveralls": "^2.11.4",
"istanbul": "^0.4.0",
"jshint": "~2.8.0",
"lodash": "~3.10.1",
"mocha": "^2.2.5",
Expand Down

0 comments on commit 5469269

Please sign in to comment.