Skip to content

Commit

Permalink
fix: changed the default report option to none
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay Kumar committed Jun 6, 2022
1 parent 2330447 commit e4b66e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ program
.option('-l, --log-level <logLevel>', 'default: 0 --- supported levels: "0-Show only requests and assertion counts, 1-Show failed assertions only, 2-Show all assertions"')
.option('-b, --break-run-on-error <breakRunOnError>', 'default: false --- supported values: "false/true"')
.option('--labels <labels>', 'csv list of labels, examples: "p2p,settlements,quotes"')
.option('--report-format <reportFormat>', 'default: "json" --- supported formats: "json", "html", "printhtml"')
.option('--report-format <reportFormat>', 'default: "none" --- supported formats: "none", "json", "html", "printhtml"')
.option('--report-auto-filename-enable <reportAutoFilenameEnable>', 'default: false, if true the file name will be generated by the backend')
.option('--report-target <reportTarget>', 'default: "file://<file_name_genrated_by_backend>" --- supported targets: "file://path_to_file", "s3://<bucket_name>[/<file_path>]"')
.option('--slack-webhook-url <slackWebhookUrl>', 'default: "Disabled" --- supported formats: "https://....."')
Expand Down
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const TESTS_EXECUTION_TIMEOUT = 1000 * 60 * 15 // 15min timout
const cli = (commanderOptions) => {
const configFile = {
mode: 'outbound',
reportFormat: 'json',
reportFormat: 'none',
baseURL: 'http://localhost:5050',
logLevel: '0',
reportAutoFilenameEnable: false,
Expand Down
2 changes: 2 additions & 0 deletions src/utils/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const report = async (data, reportType) => {
let reportData
let reportFilename
switch (config.reportFormat) {
case 'none':
return returnInfo
case 'json':
reportData = JSON.stringify(data, null, 2)
reportFilename = `${data.name}-${data.runtimeInformation.completedTimeISO}.json`
Expand Down

0 comments on commit e4b66e4

Please sign in to comment.