@mojaloop/ml-testing-toolkit-client-lib 1.12.2-snapshot.1 → 1.12.2-snapshot.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/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.12.2-snapshot.
|
|
4
|
+
"version": "1.12.2-snapshot.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Vijaya Kumar Guthi, ModusBox Inc. ",
|
|
7
7
|
"contributors": [
|
|
@@ -93,16 +93,18 @@ const generateSlackBlocks = (progress, reportURL) => {
|
|
|
93
93
|
|
|
94
94
|
const isPassed = (totalAssertionsCount === totalPassedAssertionsCount) && (totalPassedAssertionsCount > 0)
|
|
95
95
|
|
|
96
|
+
const PRTI = progress?.runtimeInformation || {}
|
|
97
|
+
|
|
96
98
|
if (config.briefSummaryPrefix) {
|
|
97
99
|
const top5FailedTestCases = failedTestCases.sort((a, b) => b.failedAssertions - a.failedAssertions).slice(0, 5)
|
|
98
100
|
|
|
99
101
|
const failedStr = totalAssertionsCount
|
|
100
102
|
? `${totalAssertionsCount - totalPassedAssertionsCount}/${totalAssertionsCount}(${(100 * ((totalAssertionsCount - totalPassedAssertionsCount) / totalAssertionsCount)).toFixed(2)}%)`
|
|
101
|
-
:
|
|
103
|
+
: `${PRTI.failedAssertions || 0}/${PRTI.failedAssertions + PRTI.passedAssertions + PRTI.skippedAssertions}(-%)`
|
|
102
104
|
|
|
103
|
-
const testCountStr = `${progress.test_cases?.length ||
|
|
105
|
+
const testCountStr = `${progress.test_cases?.length || PRTI.totalTestCases || 0}`
|
|
104
106
|
|
|
105
|
-
const reqCountStr = String(totalRequestsCount ||
|
|
107
|
+
const reqCountStr = String(totalRequestsCount || PRTI.totalRequests || 0)
|
|
106
108
|
|
|
107
109
|
return [{
|
|
108
110
|
type: 'rich_text',
|