mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
21 lines
No EOL
544 B
JavaScript
21 lines
No EOL
544 B
JavaScript
require.paths.push("./lib");
|
|
var jasmine = require('jasmine-1.0.1');
|
|
var sys = require('util');
|
|
|
|
for(var key in jasmine) {
|
|
global[key] = jasmine[key];
|
|
}
|
|
|
|
var isVerbose = false;
|
|
var showColors = true;
|
|
process.argv.forEach(function(arg){
|
|
switch(arg) {
|
|
case '--color': showColors = true; break;
|
|
case '--noColor': showColors = false; break;
|
|
case '--verbose': isVerbose = true; break;
|
|
}
|
|
});
|
|
|
|
jasmine.executeSpecsInFolder(__dirname + '/spec', function(runner, log){
|
|
process.exit(runner.results().failedCount);
|
|
}, isVerbose, showColors); |