Skip to content

Commit

Permalink
Tests: Use mocha.js for test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyganch authored and mishanga committed Dec 27, 2013
1 parent 86c1946 commit d32b807
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
},
"scripts": {
"test": "./node_modules/.bin/jshint-groups && ./node_modules/.bin/jscs . && node test/mocha",
"test-cov": "rm -rf lib-cov && jscoverage lib lib-cov && TEST_COV=true ./node_modules/.bin/mocha -R html-cov > ./test/test-coverage.html"
"test-cov": "rm -rf lib-cov && jscoverage lib lib-cov && TEST_COV=true node test/mocha > ./test/test-coverage.html"
}
}
1 change: 1 addition & 0 deletions test/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var fs = require('fs');
var path = require('path');

var mocha = new Mocha();
if (process.env.TEST_COV) mocha.reporter('html-cov');

// Tell mocha which tests to run:
['test/core', 'test/options'].forEach(function(dirname) {
Expand Down

0 comments on commit d32b807

Please sign in to comment.