testit-adapter-mocha 1.1.5 → 1.1.7
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/lib/reporter.js +3 -2
- package/package.json +32 -32
package/lib/reporter.js
CHANGED
|
@@ -75,15 +75,16 @@ module.exports = class extends Reporter {
|
|
|
75
75
|
const step = new step_1.TestStep(title);
|
|
76
76
|
try {
|
|
77
77
|
stepConstructor === null || stepConstructor === void 0 ? void 0 : stepConstructor(step);
|
|
78
|
+
this.currentStep.outcome = "Passed";
|
|
78
79
|
}
|
|
79
80
|
catch (err) {
|
|
80
81
|
this.currentStep.outcome = "Failed";
|
|
82
|
+
this.currentTest.outcome = "Failed";
|
|
81
83
|
console.log("Step failed. \n", err);
|
|
82
84
|
}
|
|
83
85
|
this.currentStep.title = step.title;
|
|
84
86
|
this.currentStep.description = step.description;
|
|
85
87
|
this.currentStep.parameters = step.parameters;
|
|
86
|
-
this.currentStep.outcome = "Passed";
|
|
87
88
|
this.currentStep.startedOn = start;
|
|
88
89
|
this.currentStep.completedOn = new Date();
|
|
89
90
|
this.currentStep.duration = Date.now() - start.getTime();
|
|
@@ -149,7 +150,7 @@ module.exports = class extends Reporter {
|
|
|
149
150
|
this.autotestsQueue.push(promise);
|
|
150
151
|
this.autotestsForTestRun.push({
|
|
151
152
|
autoTestExternalId: autotestPost.externalId,
|
|
152
|
-
outcome: test.isFailed() ? "Failed" :
|
|
153
|
+
outcome: test.isFailed() ? "Failed" : this.currentTest.outcome,
|
|
153
154
|
startedOn: this.currentTest.startedOn,
|
|
154
155
|
completedOn: new Date(),
|
|
155
156
|
duration: (_q = test.duration) !== null && _q !== void 0 ? _q : Date.now() - this.currentTest.startedOn.getTime(),
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "testit-adapter-mocha",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Mocha adapter for Test IT",
|
|
5
|
-
"main": "lib/reporter.js",
|
|
6
|
-
"types": "lib/types.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsc",
|
|
9
|
-
"watch": "tsc -w"
|
|
10
|
-
},
|
|
11
|
-
"author": {
|
|
12
|
-
"name": "Integration team",
|
|
13
|
-
"email": "integrations@testit.software"
|
|
14
|
-
},
|
|
15
|
-
"license": "Apache-2.0",
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@types/mocha": "^10.0.1",
|
|
18
|
-
"@types/node": "^20.2.4",
|
|
19
|
-
"@types/request": "^2.48.8",
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
21
|
-
"@typescript-eslint/parser": "^5.59.7",
|
|
22
|
-
"eslint": "^8.41.0",
|
|
23
|
-
"prettier": "^2.8.8"
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"mocha": "^10.2.0",
|
|
27
|
-
"testit-js-commons": "^1.1.5"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"lib"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "testit-adapter-mocha",
|
|
3
|
+
"version": "1.1.7",
|
|
4
|
+
"description": "Mocha adapter for Test IT",
|
|
5
|
+
"main": "lib/reporter.js",
|
|
6
|
+
"types": "lib/types.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"watch": "tsc -w"
|
|
10
|
+
},
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Integration team",
|
|
13
|
+
"email": "integrations@testit.software"
|
|
14
|
+
},
|
|
15
|
+
"license": "Apache-2.0",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/mocha": "^10.0.1",
|
|
18
|
+
"@types/node": "^20.2.4",
|
|
19
|
+
"@types/request": "^2.48.8",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
21
|
+
"@typescript-eslint/parser": "^5.59.7",
|
|
22
|
+
"eslint": "^8.41.0",
|
|
23
|
+
"prettier": "^2.8.8"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"mocha": "^10.2.0",
|
|
27
|
+
"testit-js-commons": "^1.1.5"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"lib"
|
|
31
|
+
]
|
|
32
|
+
}
|