testcafe-reporter-qase 2.1.1 → 2.1.3
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/reporter.js +9 -1
- package/package.json +2 -2
package/changelog.md
CHANGED
package/dist/reporter.js
CHANGED
|
@@ -28,7 +28,15 @@ class TestcafeQaseReporter {
|
|
|
28
28
|
return qase_javascript_commons_1.TestStatusEnum.skipped;
|
|
29
29
|
}
|
|
30
30
|
else if (testRunInfo.errs.length > 0) {
|
|
31
|
-
|
|
31
|
+
// Create error object for status determination
|
|
32
|
+
const firstError = testRunInfo.errs[0];
|
|
33
|
+
const error = new Error(firstError?.errMsg ?? 'Test failed');
|
|
34
|
+
if (firstError?.callsite) {
|
|
35
|
+
const filename = firstError.callsite.filename ?? 'unknown';
|
|
36
|
+
const lineNum = firstError.callsite.lineNum ?? 'unknown';
|
|
37
|
+
error.stack = `Error: ${firstError.errMsg}\n at ${filename}:${lineNum}`;
|
|
38
|
+
}
|
|
39
|
+
return (0, qase_javascript_commons_1.determineTestStatus)(error, 'failed');
|
|
32
40
|
}
|
|
33
41
|
return qase_javascript_commons_1.TestStatusEnum.passed;
|
|
34
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testcafe-reporter-qase",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Qase TMS TestCafe Reporter",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"author": "Qase Team <support@qase.io>",
|
|
41
41
|
"license": "Apache-2.0",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"qase-javascript-commons": "~2.
|
|
43
|
+
"qase-javascript-commons": "~2.4.2",
|
|
44
44
|
"uuid": "^9.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|