2010-02-21 23:37:52 +00:00
|
|
|
(function(){
|
|
|
|
process.mixin(require('assert'));
|
|
|
|
task('test', 'run each of the unit tests', function() {
|
2010-02-26 04:39:14 +00:00
|
|
|
var _a, _b, _c, _d, test;
|
2010-02-21 23:37:52 +00:00
|
|
|
_a = []; _b = test_files;
|
2010-02-26 04:39:14 +00:00
|
|
|
for (_c = 0, _d = _b.length; _c < _d; _c++) {
|
2010-02-21 23:37:52 +00:00
|
|
|
test = _b[_c];
|
|
|
|
_a.push(fs.readFile(test, function(err, code) {
|
|
|
|
return eval(coffee.compile(code));
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
return _a;
|
|
|
|
});
|
2010-02-24 23:27:10 +00:00
|
|
|
})();
|