Skip to content
Merged
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Options:
--report-format <reportFormat> default: "json" --- supported formats: "json", "html", "printhtml"
--report-auto-filename-enable <reportAutoFilenameEnable> default: false, if true the file name will be generated by the backend
--report-target <reportTarget> default: "file://<file_name_generated_by_backend>" --- supported targets: "file://path_to_file", "s3://<bucket_name>[/<file_path>]"
--report-folder <reportFolder> save report in the specified folder, default: "current working directory"
--slack-webhook-url <slackWebhookUrl> default: "Disabled" --- supported formats: "https://....."
-h, --help output usage information

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mojaloop/ml-testing-toolkit-client-lib",
"description": "Testing Toolkit Client Library",
"version": "1.10.2",
"version": "1.10.3-rorfs.0",
"license": "Apache-2.0",
"author": "Vijaya Kumar Guthi, ModusBox Inc. ",
"contributors": [
Expand Down
1 change: 1 addition & 0 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ program
.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('--report-folder <reportFolder>', 'save report in the specified folder, default: "current working directory"')
.option('--slack-webhook-url <slackWebhookUrl>', 'default: "Disabled" --- supported formats: "https://....."')
.option('--slack-webhook-url-for-failed <slackWebhookUrl>', 'default: "Disabled" --- supported formats: "https://....."')
.option('--extra-summary-information <Comma separated values in the format key:value>', 'default: none --- example: "Testcase Name:something,Environment:Dev1"')
Expand Down
1 change: 1 addition & 0 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const cli = (commanderOptions) => {
reportFormat: commanderOptions.reportFormat || configFile.reportFormat,
reportAutoFilenameEnable: commanderOptions.reportAutoFilenameEnable === 'true' || configFile.reportAutoFilenameEnable === true,
reportTarget: commanderOptions.reportTarget || configFile.reportTarget,
reportFolder: commanderOptions.reportFolder || configFile.reportFolder,
slackWebhookUrl: commanderOptions.slackWebhookUrl || configFile.slackWebhookUrl,
slackWebhookUrlForFailed: commanderOptions.slackWebhookUrlForFailed || configFile.slackWebhookUrlForFailed,
slackPassedImage: configFile.slackPassedImage,
Expand Down
1 change: 1 addition & 0 deletions src/utils/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const report = async (data, reportType) => {
}
} else {
// Store the file
reportFilename = `${config.reportFolder || '.'}/${reportFilename}`
const writeFileAsync = promisify(fs.writeFile)
await writeFileAsync(reportFilename, reportData)
console.log(`${reportFilename} was generated`)
Expand Down