Skip to content

Commit

Permalink
build: test coverage with istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jun 14, 2014
1 parent f32472b commit f092545
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1 +1,3 @@
coverage
node_modules
npm-debug.log
3 changes: 2 additions & 1 deletion .npmignore
@@ -1,2 +1,3 @@
coverage/
test/
.travis.yml
.travis.yml
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -7,3 +7,4 @@ matrix:
allow_failures:
- node_js: "0.11"
fast_finish: true
script: "npm run-script test-travis"
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -15,6 +15,7 @@
},
"devDependencies": {
"cookie-parser": "1.1.0",
"istanbul": "0.2.10",
"express": "~4.4.0",
"mocha": "~1.20.1",
"should": "~4.0.4",
Expand All @@ -24,6 +25,8 @@
"node": ">= 0.8.0"
},
"scripts": {
"test": "mocha --bail --ui bdd --reporter spec -- test/*.js"
"test": "mocha --bail --reporter spec test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec test/"
}
}

0 comments on commit f092545

Please sign in to comment.