@mojaloop/ml-testing-toolkit-client-lib 1.8.4 → 1.9.0
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
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.9.0](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.8.4...v1.9.0) (2025-03-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* refactor ([#27](https://github.com/mojaloop/ml-testing-toolkit-client-lib/issues/27)) ([9298d0a](https://github.com/mojaloop/ml-testing-toolkit-client-lib/commit/9298d0a23aca9691ebbc21c35365d9fa9bcc93ea))
|
|
11
|
+
|
|
5
12
|
### [1.8.4](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.8.3...v1.8.4) (2025-03-24)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/src/extras/release-cd.js
CHANGED
|
@@ -37,9 +37,9 @@ module.exports = async function (name, { runtimeInformation, test_cases: testCas
|
|
|
37
37
|
assertions: Object.fromEntries(testCases.map(
|
|
38
38
|
testCase => testCase?.requests?.map(
|
|
39
39
|
request => request?.request?.tests?.assertions
|
|
40
|
-
.filter(assertion => assertion?.
|
|
40
|
+
.filter(assertion => assertion?.id)
|
|
41
41
|
.map(
|
|
42
|
-
assertion => [`${testCase.
|
|
42
|
+
assertion => [`${testCase.id}.${request.request.id}.${assertion?.id}`, assertion?.resultStatus?.status]
|
|
43
43
|
)
|
|
44
44
|
).filter(Boolean)
|
|
45
45
|
).filter(Boolean).flat(2))
|
package/src/modes/outbound.js
CHANGED
|
@@ -218,7 +218,7 @@ const handleIncomingProgress = async (progress) => {
|
|
|
218
218
|
passed = logger.outbound(progress.totalResult)
|
|
219
219
|
const resultReport = await report.outbound(progress.totalResult)
|
|
220
220
|
// SaveReport status
|
|
221
|
-
if (progress.totalResult
|
|
221
|
+
if (progress.totalResult?.saveReport) {
|
|
222
222
|
if (progress.saveReportStatus?.isSaved) {
|
|
223
223
|
const ttkReportUrl = `${config.saveReportBaseUrl || config.baseURL}/api/history/test-reports/${progress.totalResult.runtimeInformation.testReportId}?format=html`
|
|
224
224
|
console.log(fStr.green(`Report saved on TTK backend server successfully and is available at ${ttkReportUrl}`))
|