diff --git a/lib/jasmine-node/cli.js b/lib/jasmine-node/cli.js index 4a1e525..a520eb3 100755 --- a/lib/jasmine-node/cli.js +++ b/lib/jasmine-node/cli.js @@ -44,7 +44,9 @@ var junitreport = { report: false, savePath : "./reports/", useDotNotation: true, - consolidate: true + consolidate: true, + filePrefix: null, + consolidateAll: false } var args = process.argv.slice(2); @@ -85,6 +87,9 @@ while(args.length) { case '--junitreport': junitreport.report = true; break; + case '--junitreport-consolidate-all': + junitreport.consolidateAll = true; + break; case '--output': junitreport.savePath = args.shift(); break; @@ -262,6 +267,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' + , ' --junitreport-consolidate-all - consolidate all reports into a single file' , ' --output - defines the output folder for junitreport files' , ' --teamcity - converts all console output to teamcity custom test runner commands. (Normally auto detected.)' , ' --growl - display test run summary in a growl notification (in addition to other outputs)' diff --git a/lib/jasmine-node/index.js b/lib/jasmine-node/index.js index 625e81c..4f85eb3 100755 --- a/lib/jasmine-node/index.js +++ b/lib/jasmine-node/index.js @@ -120,7 +120,10 @@ jasmine.executeSpecsInFolder = function(options){ } jasmineEnv.addReporter(new jasmine.JUnitXmlReporter(junitreport.savePath, junitreport.consolidate, - junitreport.useDotNotation)); + junitreport.useDotNotation, + junitreport.filePrefix, + junitreport.consolidateAll + )); } if(teamcity){