Skip to content

Commit

Permalink
Switch to Istanbul for code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Oct 5, 2014
1 parent fe57bce commit a803afa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .coverignore

This file was deleted.

4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/node_modules/
/npm-debug.log

/.coverage_data/
/.coverage_debug/
/cover_html/
/coverage/
1 change: 1 addition & 0 deletions lib/sinon-chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

// Module systems magic dance.

/* istanbul ignore else */
if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {
// NodeJS
module.exports = sinonChai;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"test": "mocha",
"lint": "jshint ./lib",
"cover": "cover run node_modules/mocha/bin/_mocha && cover report html && opener ./cover_html/index.html"
"cover": "istanbul cover node_modules/mocha/bin/_mocha && opener ./coverage/lcov-report/lib/sinon-chai.js.html"
},
"peerDependencies": {
"chai": ">=1.9.2 <2",
Expand All @@ -30,7 +30,7 @@
"devDependencies": {
"chai": "^1.9.2",
"coffee-script": "~1.8.0",
"cover": "~0.2.9",
"istanbul": "~0.3.2",
"jshint": "^2.5.6",
"mocha": "^1.21.4",
"opener": "^1.4.0",
Expand Down

0 comments on commit a803afa

Please sign in to comment.