How to use the jasmine.getAllSpecFiles function in jasmine

To help you get started, we’ve selected a few jasmine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github arian / Array.Math / Specs / runner.js View on Github external
case '--color': showColors = true; break;
  case '--noColor': showColors = false; break;
  case '--verbose': isVerbose = true; break;
  }
});


require('./mootools');
require('./../Source/Array.Math');

require('./../Source/Complex');
require('./../Source/Vector');
require('./../Source/Matrix');


jasmine.runSpecs(jasmine.getAllSpecFiles(__dirname + '/spec'), function(runner, log){
  process.exit(runner.results().failedCount);
}, isVerbose, showColors);