Skip to content

Commit

Permalink
[test] Run coverage information
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Feb 9, 2015
1 parent 89ae974 commit 1bdef7b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ node_js:
- "iojs-v1.0"
before_install:
- "npm install -g npm@2.1.18"
script:
- "npm run test-travis"
after_script:
- "npm install coveralls@2.11.x && cat coverage/lcov.info | coveralls"
matrix:
fast_finish: true
allow_failures:
Expand Down
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "Temper compiles template for client and server side usage.",
"main": "index.js",
"scripts": {
"test": "NODE_ENV=testing ./node_modules/.bin/mocha $(find test -name '*.test.js')"
"test": "mocha $(find test -name '*.test.js')",
"watch": "mocha --watch $(find test -name '*.test.js')",
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- $(find test -name '*.test.js')",
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- $(find test -name '*.test.js')"
},
"repository": {
"type": "git",
Expand All @@ -25,11 +28,12 @@
"license": "MIT",
"devDependencies": {
"assume": "1.1.x",
"mocha": "2.1.x",
"jade": "*",
"hogan.js": "*",
"handlebars": "*",
"ejs": "*",
"handlebars": "*",
"hogan.js": "*",
"istanbul": "0.3.5",
"jade": "*",
"mocha": "2.1.x",
"pre-commit": "1.0.x"
},
"dependencies": {
Expand Down

0 comments on commit 1bdef7b

Please sign in to comment.