Skip to content

Commit

Permalink
coverage reporting added.
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Jan 11, 2016
1 parent efe3775 commit d4f3306
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
31 changes: 27 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
node_modules/
public/components
.sass-cache
public/dest/
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ language: node_js
sudo: false
node_js:
- v4
after_script:
- npm run coveralls
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "A microservice framework",
"main": "index.js",
"scripts": {
"test": "mocha test/{**/,/}*.js"
"test": "mocha test/{**/,/}*.js",
"coverage": "istanbul cover _mocha test/{**/,/}*.js -- -R spec",
"coveralls": "istanbul cover _mocha test/{**/,/}*.js --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,6 +35,8 @@
},
"devDependencies": {
"chai": "^3.4.1",
"coveralls": "^2.11.6",
"istanbul": "^0.4.2",
"mocha": "^2.3.4",
"sinon": "^1.17.2",
"sinon-chai": "^2.8.0"
Expand Down

0 comments on commit d4f3306

Please sign in to comment.