Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add coverage report

  • Loading branch information...
commit 7fa90dca4f5c145c4212c131ef60001ca943b9ed 1 parent 7dca023
@jerolimov jerolimov authored
Showing with 18 additions and 6 deletions.
  1. +1 −0  .gitignore
  2. +2 −3 .travis.yml
  3. +8 −0 README.md
  4. +7 −3 package.json
View
1  .gitignore
@@ -1,5 +1,6 @@
/node_modules
/bower_components
+/coverage
/data
.*
*.log
View
5 .travis.yml
@@ -7,6 +7,5 @@ node_js:
- "0.11"
- "0.10"
-before_script:
- - npm install mocha -g
-
+after_script:
+ - "cat ./coverage/lcov.info | coveralls"
View
8 README.md
@@ -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
View
10 package.json
@@ -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",
@@ -46,7 +47,10 @@
},
"devDependencies": {
"bower": "*",
+ "nodemon": "*",
"connect-livereload": "*",
+ "mocha": "*",
+ "istanbul": "*",
"supertest": "~0.13.0",
"should": "~4.0.4"
}
Please sign in to comment.
Something went wrong with that request. Please try again.