From e4b66e4fb1027d77c4cac6113068d678b1626861 Mon Sep 17 00:00:00 2001 From: Vijay Kumar Date: Mon, 6 Jun 2022 19:51:37 +0530 Subject: [PATCH] fix: changed the default report option to none --- src/client.js | 2 +- src/router.js | 2 +- src/utils/report.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client.js b/src/client.js index 1be525c..a49032e 100644 --- a/src/client.js +++ b/src/client.js @@ -34,7 +34,7 @@ program .option('-l, --log-level ', '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 ', 'default: false --- supported values: "false/true"') .option('--labels ', 'csv list of labels, examples: "p2p,settlements,quotes"') - .option('--report-format ', 'default: "json" --- supported formats: "json", "html", "printhtml"') + .option('--report-format ', 'default: "none" --- supported formats: "none", "json", "html", "printhtml"') .option('--report-auto-filename-enable ', 'default: false, if true the file name will be generated by the backend') .option('--report-target ', 'default: "file://" --- supported targets: "file://path_to_file", "s3://[/]"') .option('--slack-webhook-url ', 'default: "Disabled" --- supported formats: "https://....."') diff --git a/src/router.js b/src/router.js index 4b658f6..fd76893 100644 --- a/src/router.js +++ b/src/router.js @@ -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, diff --git a/src/utils/report.js b/src/utils/report.js index 3678519..79411dd 100644 --- a/src/utils/report.js +++ b/src/utils/report.js @@ -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`