« index
Coverage for /Users/jdemorai/projects/dust-Linkedin/dustjs/test/jasmine-test/server/specRunner.js : 86%
36 lines |
31 run |
5 missing |
0 partial |
9 blocks |
4 blocks run |
5 blocks missing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | var jasmine = require('jasmine-node'), sys = require('util'), path = require('path'); /* this should be declared global in order to access them in the spec*/ dust = require('../../../lib/dust'), dustExamples = require('../spec/examples'); for(key in jasmine) global[key] = jasmine[key]; isVerbose = true; showColors = true; coffee = false; process.argv.forEach(function(arg) { var coffee, isVerbose, showColors; switch (arg) { case '--color': return showColors = true; case '--noColor': return showColors = false; case '--verbose': return isVerbose = true; case '--coffee': return coffee = true; } }); jasmine.executeSpecsInFolder(path.dirname(__dirname) + '/spec', (function(runner, log) { if (runner.results().failedCount === 0) { return process.exit(0); } else { return process.exit(1); } }), isVerbose, showColors); |