Browse files

Added support for absolute paths as argument

  • Loading branch information...
1 parent ca21cd6 commit fddd7db4a4a75daf6e5cb8cf114fc6d0c8620612 @daften daften committed with mhevery Dec 8, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/jasmine-node/cli.js
View
10 lib/jasmine-node/cli.js
@@ -58,6 +58,9 @@ while(args.length) {
case '--junitreport':
junitreport.report = true;
break;
+ case '--output':
+ junitreport.savePath = args.shift();
+ break;
case '--teamcity':
teamcity = true;
break;
@@ -82,7 +85,11 @@ while(args.length) {
help();
default:
if (arg.match(/^--/)) help();
- specFolder = Path.join(process.cwd(), arg);
+ if (arg.match(/^\/.*/)) {
+ specFolder = arg;
+ } else {
+ specFolder = Path.join(process.cwd(), arg);
+ }
break;
}
}
@@ -148,6 +155,7 @@ function help(){
, ' --verbose - print extra information per each test run'
, ' --coffee - load coffee-script which allows execution .coffee files'
, ' --junitreport - export tests results as junitreport xml format'
+ , ' --output - defines the output folder for junitreport files'
, ' --teamcity - converts all console output to teamcity custom test runner commands. (Normally auto detected.)'
, ' --runWithRequireJs - loads all specs using requirejs instead of node\'s native require method'
, ' --test-dir - the absolute root directory path where tests are located'

0 comments on commit fddd7db

Please sign in to comment.