@mojaloop/ml-testing-toolkit-client-lib 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/package.json +2 -2
- package/src/extras/slack-broadcast.js +15 -13
- package/src/router.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.8.2](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.8.1...v1.8.2) (2025-03-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* avoid unnecessary wrapping for brief slack messages ([#23](https://github.com/mojaloop/ml-testing-toolkit-client-lib/issues/23)) ([3b518f4](https://github.com/mojaloop/ml-testing-toolkit-client-lib/commit/3b518f4b8fc953f066f9b733b021efe3207e1d2b))
|
|
11
|
+
|
|
12
|
+
### [1.8.1](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.8.0...v1.8.1) (2025-03-18)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* boolean options ([#22](https://github.com/mojaloop/ml-testing-toolkit-client-lib/issues/22)) ([be0835b](https://github.com/mojaloop/ml-testing-toolkit-client-lib/commit/be0835bda526886f8c8e40737038eb1ddf1ccb66))
|
|
18
|
+
|
|
5
19
|
## [1.8.0](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.7.0...v1.8.0) (2025-03-17)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/ml-testing-toolkit-client-lib",
|
|
3
3
|
"description": "Testing Toolkit Client Library",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Vijaya Kumar Guthi, ModusBox Inc. ",
|
|
7
7
|
"contributors": [
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"snapshot": "npx standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@mojaloop/central-services-logger": "11.
|
|
66
|
+
"@mojaloop/central-services-logger": "11.7.0",
|
|
67
67
|
"@mojaloop/ml-testing-toolkit-shared-lib": "14.0.4",
|
|
68
68
|
"@mojaloop/sdk-standard-components": "19.10.3",
|
|
69
69
|
"@slack/webhook": "7.0.5",
|
|
@@ -86,20 +86,22 @@ const generateSlackBlocks = (progress, reportURL) => {
|
|
|
86
86
|
if (config.briefSummaryPrefix) {
|
|
87
87
|
const top5FailedTestCases = failedTestCases.sort((a, b) => b.failedAssertions - a.failedAssertions).slice(0, 5)
|
|
88
88
|
return [{
|
|
89
|
-
type: '
|
|
89
|
+
type: 'rich_text',
|
|
90
90
|
elements: [{
|
|
91
|
-
type: '
|
|
92
|
-
|
|
93
|
-
`${totalAssertionsCount === totalPassedAssertionsCount ? '🟢' : '🔴'}
|
|
94
|
-
reportURL ?
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
91
|
+
type: 'rich_text_section',
|
|
92
|
+
elements: [
|
|
93
|
+
{ type: 'text', text: `${totalAssertionsCount === totalPassedAssertionsCount ? '🟢' : '🔴'}` },
|
|
94
|
+
reportURL ? { type: 'link', url: reportURL, text: config.briefSummaryPrefix } : { type: 'text', text: config.briefSummaryPrefix },
|
|
95
|
+
{ type: 'text', text: ' tests: ' },
|
|
96
|
+
{ type: 'text', text: String(progress.test_cases.length), style: { code: true } },
|
|
97
|
+
{ type: 'text', text: ', requests: ' },
|
|
98
|
+
{ type: 'text', text: String(totalRequestsCount), style: { code: true } },
|
|
99
|
+
{ type: 'text', text: ', failed: ' },
|
|
100
|
+
{ type: 'text', text: `${totalAssertionsCount - totalPassedAssertionsCount}/${totalAssertionsCount}(${(100 * ((totalAssertionsCount - totalPassedAssertionsCount) / totalAssertionsCount)).toFixed(2)}%)`, style: { code: true } },
|
|
101
|
+
{ type: 'text', text: ', duration: ' },
|
|
102
|
+
{ type: 'text', text: millisecondsToTime(progress.runtimeInformation.runDurationMs), style: { code: true } },
|
|
103
|
+
top5FailedTestCases.length > 0 && { type: 'text', text: ', top 5 failed test cases:\n' + top5FailedTestCases.map(tc => `• ${tc.name}: ${tc.failedAssertions}`).join('\n') }
|
|
104
|
+
].filter(Boolean)
|
|
103
105
|
}]
|
|
104
106
|
}]
|
|
105
107
|
}
|
package/src/router.js
CHANGED
|
@@ -54,8 +54,8 @@ const cli = (commanderOptions) => {
|
|
|
54
54
|
mode: commanderOptions.mode || configFile.mode,
|
|
55
55
|
inputFiles: commanderOptions.inputFiles,
|
|
56
56
|
logLevel: commanderOptions.logLevel || configFile.logLevel,
|
|
57
|
-
breakRunOnError: commanderOptions.breakRunOnError || configFile.breakRunOnError,
|
|
58
|
-
saveReport: commanderOptions.saveReport || configFile.saveReport,
|
|
57
|
+
breakRunOnError: commanderOptions.breakRunOnError === 'true' || configFile.breakRunOnError,
|
|
58
|
+
saveReport: commanderOptions.saveReport === 'true' || configFile.saveReport,
|
|
59
59
|
saveReportBaseUrl: commanderOptions.saveReportBaseUrl || configFile.saveReportBaseUrl,
|
|
60
60
|
reportName: commanderOptions.reportName,
|
|
61
61
|
environmentFile: commanderOptions.environmentFile,
|