Browse files

* Add color to mocha runs

* Add convenience jake task to run mocha --watch
  • Loading branch information...
1 parent 4de6397 commit 8eea04f00d7aa2bbd68e1bb9e20054bcf7821ff0 @smtlaissezfaire committed Feb 24, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 Jakefile.js
View
8 Jakefile.js
@@ -61,8 +61,12 @@ var findLoopFilesInDir = function(dir, cb) {
desc("Run tests");
task("spec", [], function() {
- process.env.NODE_ENV = "test";
- backtick("mocha", [], null);
+ backtick("mocha", ["-c"], null);
+});
+
+desc('Run tests while watching for updates');
+task("spec-watch", [], function() {
+ backtick("mocha", ["-c", "--watch"], null);
});
var EXCLUDED_LINT_FILES = [

0 comments on commit 8eea04f

Please sign in to comment.