cucumberjs-qase-reporter 2.1.4 → 2.1.5
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 +7 -0
- package/dist/storage.js +7 -1
- package/package.json +2 -2
package/changelog.md
CHANGED
package/dist/storage.js
CHANGED
|
@@ -145,7 +145,13 @@ class Storage {
|
|
|
145
145
|
*/
|
|
146
146
|
addTestCaseStep(testCaseStep) {
|
|
147
147
|
const oldStatus = this.testCaseStartedResult[testCaseStep.testCaseStartedId];
|
|
148
|
-
|
|
148
|
+
// Create error object for status determination
|
|
149
|
+
let error = null;
|
|
150
|
+
if (testCaseStep.testStepResult.message) {
|
|
151
|
+
error = new Error(testCaseStep.testStepResult.message);
|
|
152
|
+
}
|
|
153
|
+
// Determine status based on error type
|
|
154
|
+
const newStatus = (0, qase_javascript_commons_1.determineTestStatus)(error, testCaseStep.testStepResult.status);
|
|
149
155
|
this.testCaseSteps[testCaseStep.testStepId] = testCaseStep;
|
|
150
156
|
if (newStatus !== qase_javascript_commons_1.TestStatusEnum.passed) {
|
|
151
157
|
if (testCaseStep.testStepResult.message) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cucumberjs-qase-reporter",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
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.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@cucumber/cucumber": ">=7.0.0"
|