Skip to content

Commit

Permalink
Added support for absolute paths as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
daften authored and mhevery committed Feb 15, 2012
1 parent ca21cd6 commit fddd7db
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/jasmine-node/cli.js
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit fddd7db

Please sign in to comment.