Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for ConsolidateAll in JunitReporter #385

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/jasmine-node/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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)'
Expand Down
5 changes: 4 additions & 1 deletion lib/jasmine-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down