How to use the jasmine.runSpecs 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 mootools / mootools-core-specs / runner.js View on Github external
require('./Helpers/JSSpecToJasmine');
require('./MooTools').apply(GLOBAL);

require('./Helpers/Loader');

var Sets = require('./Sets').Sets;

var specs = [];
load = function(object, base){
	for (var j = 0; j < object.length; j++)
		specs.push(__dirname + '/' + (base || '') + object[j]);
};

loadSpecs(Sets, options);

jasmine.runSpecs(specs, function(runner, log){
  process.exit(runner.results().failedCount);
}, true, true);