Skip to content

Commit

Permalink
* Add color to mocha runs
Browse files Browse the repository at this point in the history
* Add convenience jake task to run mocha --watch
  • Loading branch information
smtlaissezfaire committed Feb 25, 2013
1 parent 4de6397 commit 8eea04f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Jakefile.js
Expand Up @@ -61,8 +61,12 @@ var findLoopFilesInDir = function(dir, cb) {


desc("Run tests"); desc("Run tests");
task("spec", [], function() { task("spec", [], function() {
process.env.NODE_ENV = "test"; backtick("mocha", ["-c"], null);
backtick("mocha", [], null); });

desc('Run tests while watching for updates');
task("spec-watch", [], function() {
backtick("mocha", ["-c", "--watch"], null);
}); });


var EXCLUDED_LINT_FILES = [ var EXCLUDED_LINT_FILES = [
Expand Down

0 comments on commit 8eea04f

Please sign in to comment.