cucumberjs-qase-reporter 2.1.5 → 2.1.6
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 +6 -0
- package/dist/storage.js +5 -4
- package/package.json +2 -2
package/changelog.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# qase-cucumberjs@2.1.6
|
|
2
|
+
|
|
3
|
+
## Bug fixes
|
|
4
|
+
|
|
5
|
+
Fixed issue where cucumber-specific statuses like `AMBIGUOUS` were incorrectly mapped using generic status mapping instead of cucumber-specific mapping. Now cucumber-specific statuses are properly mapped according to cucumberjs conventions.
|
|
6
|
+
|
|
1
7
|
# qase-cucumberjs@2.1.5
|
|
2
8
|
|
|
3
9
|
## What's new
|
package/dist/storage.js
CHANGED
|
@@ -151,7 +151,7 @@ class Storage {
|
|
|
151
151
|
error = new Error(testCaseStep.testStepResult.message);
|
|
152
152
|
}
|
|
153
153
|
// Determine status based on error type
|
|
154
|
-
const newStatus = (0, qase_javascript_commons_1.determineTestStatus)(error, testCaseStep.testStepResult.status);
|
|
154
|
+
const newStatus = (0, qase_javascript_commons_1.determineTestStatus)(error, Storage.statusMap[testCaseStep.testStepResult.status]);
|
|
155
155
|
this.testCaseSteps[testCaseStep.testStepId] = testCaseStep;
|
|
156
156
|
if (newStatus !== qase_javascript_commons_1.TestStatusEnum.passed) {
|
|
157
157
|
if (testCaseStep.testStepResult.message) {
|
|
@@ -161,7 +161,7 @@ class Storage {
|
|
|
161
161
|
this.testCaseStartedErrors[testCaseStep.testCaseStartedId]?.push(testCaseStep.testStepResult.message);
|
|
162
162
|
}
|
|
163
163
|
if (oldStatus) {
|
|
164
|
-
if (oldStatus !== qase_javascript_commons_1.TestStatusEnum.failed) {
|
|
164
|
+
if (oldStatus !== qase_javascript_commons_1.TestStatusEnum.failed && oldStatus !== qase_javascript_commons_1.TestStatusEnum.invalid) {
|
|
165
165
|
this.testCaseStartedResult[testCaseStep.testCaseStartedId] = newStatus;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -213,6 +213,7 @@ class Storage {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
+
const steps = this.convertSteps(pickle.steps, tc);
|
|
216
217
|
return {
|
|
217
218
|
attachments: this.attachments[testCase.testCaseStartedId] ?? [],
|
|
218
219
|
author: null,
|
|
@@ -232,7 +233,7 @@ class Storage {
|
|
|
232
233
|
relations: relations,
|
|
233
234
|
run_id: null,
|
|
234
235
|
signature: this.getSignature(pickle, metadata.ids),
|
|
235
|
-
steps:
|
|
236
|
+
steps: steps,
|
|
236
237
|
testops_id: metadata.ids.length > 0 ? metadata.ids : null,
|
|
237
238
|
id: tcs.id,
|
|
238
239
|
title: metadata.title ?? pickle.name,
|
|
@@ -285,7 +286,7 @@ class Storage {
|
|
|
285
286
|
[cucumber_1.Status.PASSED]: qase_javascript_commons_1.TestStatusEnum.passed,
|
|
286
287
|
[cucumber_1.Status.FAILED]: qase_javascript_commons_1.TestStatusEnum.failed,
|
|
287
288
|
[cucumber_1.Status.SKIPPED]: qase_javascript_commons_1.TestStatusEnum.skipped,
|
|
288
|
-
[cucumber_1.Status.AMBIGUOUS]: qase_javascript_commons_1.TestStatusEnum.
|
|
289
|
+
[cucumber_1.Status.AMBIGUOUS]: qase_javascript_commons_1.TestStatusEnum.invalid,
|
|
289
290
|
[cucumber_1.Status.PENDING]: qase_javascript_commons_1.TestStatusEnum.skipped,
|
|
290
291
|
[cucumber_1.Status.UNDEFINED]: qase_javascript_commons_1.TestStatusEnum.skipped,
|
|
291
292
|
[cucumber_1.Status.UNKNOWN]: qase_javascript_commons_1.TestStatusEnum.skipped,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cucumberjs-qase-reporter",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Qase TMS CucumberJS Reporter",
|
|
5
5
|
"homepage": "https://github.com/qase-tms/qase-javascript",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@cucumber/messages": "^22.0.0",
|
|
43
|
-
"qase-javascript-commons": "~2.4.
|
|
43
|
+
"qase-javascript-commons": "~2.4.8"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@cucumber/cucumber": ">=7.0.0"
|