runner.js 417 B

123456789101112131415
  1. var fs = require('fs'),
  2. path = require('path');
  3. require('nodeunit').reporters.default.run(
  4. fs.readdirSync(__dirname)
  5. .filter(function(file){
  6. return fs.statSync(path.join(__dirname, file)).isFile() && file !== 'runner.js';
  7. })
  8. .map(function(file) {
  9. return path.join('test', file);
  10. }),
  11. null,
  12. function(err) {
  13. err && process.exit(1);
  14. });