Skip to content

Commit

Permalink
Merge pull request #19 from BitModern/refacto/UploadTestRun/SuiteParam
Browse files Browse the repository at this point in the history
feat(uploadTestRun): suite param added
  • Loading branch information
Cjumelin authored Jan 23, 2024
2 parents 5732049 + a21869d commit 4931692
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/UploadTestRunCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@ export class UploadTestRunCommand extends Command {
'upload_test_run <xmlfiles>',
'JUnit/XUnit XML Upload',
(args: Argv) => {
return args.positional('xmlfiles', {
describe: `glob JUnit/XUnit XML output file, example: upload_test_run '**/*.xml'`,
type: 'string',
});
return args
.positional('xmlfiles', {
describe: `glob JUnit/XUnit XML output file, example: upload_test_run '**/*.xml'`,
type: 'string',
})
.option('folder_id', {
alias: 'fi',
describe: 'Folder id',
type: 'string',
}
);
},
async (args: Arguments) => {
try {
Expand Down Expand Up @@ -94,6 +101,9 @@ export class UploadTestRunCommand extends Command {
if (args.create_manual_run) {
data.append('create_manual_run', args.create_manual_run ? 1 : 0);
}
if (args.suite_id) {
data.append('suite_id', args.suite_id);
}

const files = [...xmlFiles, ...attachments];

Expand Down

0 comments on commit 4931692

Please sign in to comment.