Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env node
- // make it chmod +x and put it into ~/bin dir
- require('jasmine');
- var target = "";
- if(process.argv[2]) {
- target = process.argv[2]
- } else {
- target = process.cwd() + '/spec';
- }
- jasmine.executeSpecsInFolder(target, function(runner, log){
- process.exit(runner.results().failedCount);
- }, false, true, "_spec.js$");
Add Comment
Please, Sign In to add comment