1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/js/cake_tasks.js

14 lines
343 B
JavaScript
Raw Normal View History

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