Skip to content

Commit

Permalink
Add coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
jerolimov committed Jul 16, 2014
1 parent 7dca023 commit 7fa90dc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
/node_modules
/bower_components
/coverage
/data
.*
*.log
Expand Down
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -7,6 +7,5 @@ node_js:
- "0.11"
- "0.10"

before_script:
- npm install mocha -g

after_script:
- "cat ./coverage/lcov.info | coveralls"
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -35,6 +35,14 @@ Heroku version runs in production mode:

npm run-script run-auto

*Run tests*

npm test

*Run tests with coverage report*

npm run-script test-cov

*Push new version to heroku:*

git push heroku master && heroku logs -t
10 changes: 7 additions & 3 deletions package.json
Expand Up @@ -4,10 +4,11 @@
"description": "Webapp zur Unterstützung einer Bewertung nach dem Niveaustufenmodell",
"private": true,
"scripts": {
"postinstall": "bower install",
"postinstall": "node ./node_modules/.bin/bower install",
"run": "node server.js",
"run-auto": "nodemon --delay 2.5 --ignore public server.js",
"test": "mocha --recursive --reporter spec app/tests"
"run-auto": "node ./node_modules/.bin/nodemon --delay 2.5 --ignore public server.js",
"test": "node ./node_modules/.bin/mocha --recursive --reporter spec app/tests",
"test-cov": "node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --recursive app/tests"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -46,7 +47,10 @@
},
"devDependencies": {
"bower": "*",
"nodemon": "*",
"connect-livereload": "*",
"mocha": "*",
"istanbul": "*",
"supertest": "~0.13.0",
"should": "~4.0.4"
}
Expand Down

0 comments on commit 7fa90dc

Please sign in to comment.