testit-adapter-cucumber 3.7.9 → 4.0.0
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/dist/formatter.d.ts +4 -0
- package/dist/formatter.js +93 -35
- package/dist/formatter.js.map +1 -1
- package/package.json +2 -2
package/dist/formatter.d.ts
CHANGED
|
@@ -3,12 +3,16 @@ import { Formatter, IFormatterOptions } from "@cucumber/cucumber";
|
|
|
3
3
|
import { GherkinDocument, Pickle, TestCase, TestStepFinished, TestRunFinished, TestCaseStarted, TestCaseFinished, TestStepStarted } from "@cucumber/messages";
|
|
4
4
|
import { IFormatter } from "./types";
|
|
5
5
|
export default class TestItFormatter extends Formatter implements IFormatter {
|
|
6
|
+
private static unhandledRejectionHandlerInstalled;
|
|
6
7
|
private readonly strategy;
|
|
7
8
|
private readonly additions;
|
|
8
9
|
private readonly storage;
|
|
10
|
+
private readonly setupPromise;
|
|
9
11
|
private currentTestCaseId;
|
|
10
12
|
private attachmentsQueue;
|
|
11
13
|
constructor(options: IFormatterOptions);
|
|
14
|
+
private installUnhandledRejectionHandler;
|
|
15
|
+
private handleEnvelope;
|
|
12
16
|
onGherkinDocument(document: GherkinDocument): void;
|
|
13
17
|
onPickle(pickle: Pickle): void;
|
|
14
18
|
onTestCase(testCase: TestCase): void;
|
package/dist/formatter.js
CHANGED
|
@@ -17,13 +17,38 @@ class TestItFormatter extends cucumber_1.Formatter {
|
|
|
17
17
|
constructor(options) {
|
|
18
18
|
super(options);
|
|
19
19
|
this.attachmentsQueue = [];
|
|
20
|
+
this.installUnhandledRejectionHandler();
|
|
20
21
|
const config = new testit_js_commons_1.ConfigComposer().compose(options.parsedArgvOptions);
|
|
21
22
|
this.strategy = testit_js_commons_1.StrategyFactory.create(config);
|
|
22
23
|
this.additions = new testit_js_commons_1.Additions(config);
|
|
23
24
|
this.storage = new storage_1.Storage();
|
|
24
|
-
|
|
25
|
+
this.setupPromise = this.strategy.setup();
|
|
26
|
+
options.eventBroadcaster.on("envelope", (envelope) => {
|
|
27
|
+
void this.handleEnvelope(envelope).catch((err) => {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
console.error("Unhandled async error in Cucumber formatter envelope handler:", (_b = (_a = err === null || err === void 0 ? void 0 : err.body) !== null && _a !== void 0 ? _a : err === null || err === void 0 ? void 0 : err.error) !== null && _b !== void 0 ? _b : err);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
options.supportCodeLibrary.World.prototype.addMessage = this.addMessage.bind(this);
|
|
33
|
+
options.supportCodeLibrary.World.prototype.addLinks = this.addLinks.bind(this);
|
|
34
|
+
options.supportCodeLibrary.World.prototype.addAttachments = this.addAttachments.bind(this);
|
|
35
|
+
}
|
|
36
|
+
installUnhandledRejectionHandler() {
|
|
37
|
+
if (TestItFormatter.unhandledRejectionHandlerInstalled) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
TestItFormatter.unhandledRejectionHandlerInstalled = true;
|
|
41
|
+
process.on("unhandledRejection", (reason) => {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
const normalized = (_b = (_a = reason === null || reason === void 0 ? void 0 : reason.body) !== null && _a !== void 0 ? _a : reason === null || reason === void 0 ? void 0 : reason.error) !== null && _b !== void 0 ? _b : reason;
|
|
44
|
+
console.error("Unhandled promise rejection in Cucumber formatter:", normalized);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
handleEnvelope(envelope) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
49
|
if (envelope.gherkinDocument) {
|
|
26
|
-
|
|
50
|
+
this.onGherkinDocument(envelope.gherkinDocument);
|
|
51
|
+
return;
|
|
27
52
|
}
|
|
28
53
|
if (envelope.pickle) {
|
|
29
54
|
const resolvedAutotests = yield this.strategy.testsInRun;
|
|
@@ -31,37 +56,40 @@ class TestItFormatter extends cucumber_1.Formatter {
|
|
|
31
56
|
const tags = (0, utils_1.parseTags)(envelope.pickle.tags);
|
|
32
57
|
for (const externalId of resolvedAutotests) {
|
|
33
58
|
if (externalId === tags.externalId) {
|
|
34
|
-
|
|
59
|
+
this.onPickle(envelope.pickle);
|
|
60
|
+
return;
|
|
35
61
|
}
|
|
36
62
|
}
|
|
37
|
-
envelope.pickle = undefined;
|
|
38
63
|
}
|
|
39
64
|
else {
|
|
40
|
-
|
|
65
|
+
this.onPickle(envelope.pickle);
|
|
66
|
+
return;
|
|
41
67
|
}
|
|
42
68
|
}
|
|
43
69
|
if (envelope.testCase) {
|
|
44
|
-
|
|
70
|
+
this.onTestCase(envelope.testCase);
|
|
71
|
+
return;
|
|
45
72
|
}
|
|
46
73
|
if (envelope.testCaseStarted) {
|
|
47
|
-
|
|
74
|
+
this.onTestCaseStarted(envelope.testCaseStarted);
|
|
75
|
+
return;
|
|
48
76
|
}
|
|
49
77
|
if (envelope.testStepStarted) {
|
|
50
|
-
|
|
78
|
+
this.testStepStarted(envelope.testStepStarted);
|
|
79
|
+
return;
|
|
51
80
|
}
|
|
52
81
|
if (envelope.testStepFinished) {
|
|
53
|
-
|
|
82
|
+
this.onTestStepFinished(envelope.testStepFinished);
|
|
83
|
+
return;
|
|
54
84
|
}
|
|
55
85
|
if (envelope.testCaseFinished) {
|
|
56
|
-
|
|
86
|
+
this.testCaseFinished(envelope.testCaseFinished);
|
|
87
|
+
return;
|
|
57
88
|
}
|
|
58
89
|
if (envelope.testRunFinished) {
|
|
59
|
-
|
|
90
|
+
yield this.onTestRunFinished(envelope.testRunFinished);
|
|
60
91
|
}
|
|
61
|
-
})
|
|
62
|
-
options.supportCodeLibrary.World.prototype.addMessage = this.addMessage.bind(this);
|
|
63
|
-
options.supportCodeLibrary.World.prototype.addLinks = this.addLinks.bind(this);
|
|
64
|
-
options.supportCodeLibrary.World.prototype.addAttachments = this.addAttachments.bind(this);
|
|
92
|
+
});
|
|
65
93
|
}
|
|
66
94
|
onGherkinDocument(document) {
|
|
67
95
|
this.storage.saveGherkinDocument(document);
|
|
@@ -87,19 +115,36 @@ class TestItFormatter extends cucumber_1.Formatter {
|
|
|
87
115
|
this.storage.saveTestCaseFinished(testCaseFinished);
|
|
88
116
|
}
|
|
89
117
|
onTestRunFinished(_testRunFinished) {
|
|
118
|
+
var _a, _b;
|
|
90
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
120
|
+
try {
|
|
121
|
+
yield this.setupPromise;
|
|
122
|
+
yield this.strategy.testRunId;
|
|
123
|
+
yield Promise.allSettled(this.attachmentsQueue);
|
|
124
|
+
const results = this.storage.getTestRunResults();
|
|
125
|
+
const autotests = this.storage.getAutotests();
|
|
126
|
+
yield Promise.allSettled(autotests.map((autotestPost) => {
|
|
127
|
+
const result = results.find((r) => r.autoTestExternalId === autotestPost.externalId);
|
|
128
|
+
if (result !== undefined) {
|
|
129
|
+
return this.strategy.loadAutotest(autotestPost, result.outcome).catch((err) => {
|
|
130
|
+
var _a, _b;
|
|
131
|
+
console.error("Cucumber loadAutotest failed:", (_b = (_a = err === null || err === void 0 ? void 0 : err.body) !== null && _a !== void 0 ? _a : err === null || err === void 0 ? void 0 : err.error) !== null && _b !== void 0 ? _b : err);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return Promise.resolve();
|
|
135
|
+
}));
|
|
136
|
+
yield this.strategy.loadTestRun(results).catch((err) => {
|
|
137
|
+
var _a, _b;
|
|
138
|
+
console.error("Cucumber loadTestRun failed:", (_b = (_a = err === null || err === void 0 ? void 0 : err.body) !== null && _a !== void 0 ? _a : err === null || err === void 0 ? void 0 : err.error) !== null && _b !== void 0 ? _b : err);
|
|
139
|
+
});
|
|
140
|
+
yield this.strategy.teardown().catch((err) => {
|
|
141
|
+
var _a, _b;
|
|
142
|
+
console.error("Cucumber teardown failed:", (_b = (_a = err === null || err === void 0 ? void 0 : err.body) !== null && _a !== void 0 ? _a : err === null || err === void 0 ? void 0 : err.error) !== null && _b !== void 0 ? _b : err);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
catch (err) {
|
|
146
|
+
console.error("Cucumber onTestRunFinished failed:", (_b = (_a = err === null || err === void 0 ? void 0 : err.body) !== null && _a !== void 0 ? _a : err === null || err === void 0 ? void 0 : err.error) !== null && _b !== void 0 ? _b : err);
|
|
147
|
+
}
|
|
103
148
|
});
|
|
104
149
|
}
|
|
105
150
|
addMessage(message) {
|
|
@@ -119,16 +164,29 @@ class TestItFormatter extends cucumber_1.Formatter {
|
|
|
119
164
|
throw new Error("CurrentTestCaseId is not a set");
|
|
120
165
|
}
|
|
121
166
|
const currentTestCaseId = this.currentTestCaseId;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
167
|
+
const promise = (() => __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
const maxAttempts = 3;
|
|
169
|
+
let lastErr;
|
|
170
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
171
|
+
try {
|
|
172
|
+
// @ts-ignore — overload: string[]
|
|
173
|
+
const ids = yield this.additions.addAttachments(attachments);
|
|
174
|
+
this.storage.addAttachments(currentTestCaseId, ids);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
catch (err) {
|
|
178
|
+
lastErr = err;
|
|
179
|
+
console.log("Error load attachments (attempt): \n", attachments, "\n", attempt, "\n", err);
|
|
180
|
+
if (attempt < maxAttempts) {
|
|
181
|
+
yield new Promise((r) => setTimeout(r, 400 * attempt));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
console.error("Error load attachments (gave up): \n", attachments, "\n", lastErr);
|
|
186
|
+
}))();
|
|
130
187
|
this.attachmentsQueue.push(promise);
|
|
131
188
|
}
|
|
132
189
|
}
|
|
133
190
|
exports.default = TestItFormatter;
|
|
191
|
+
TestItFormatter.unhandledRejectionHandlerInstalled = false;
|
|
134
192
|
//# sourceMappingURL=formatter.js.map
|
package/dist/formatter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatter.js","sourceRoot":"","sources":["../src/formatter.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yDAA+G;AAC/G,iDAAkE;AAalE,uCAAoC;AACpC,mCAAoC;AAEpC,MAAqB,eAAgB,SAAQ,oBAAS;
|
|
1
|
+
{"version":3,"file":"formatter.js","sourceRoot":"","sources":["../src/formatter.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yDAA+G;AAC/G,iDAAkE;AAalE,uCAAoC;AACpC,mCAAoC;AAEpC,MAAqB,eAAgB,SAAQ,oBAAS;IAUpD,YAAY,OAA0B;QACpC,KAAK,CAAC,OAAO,CAAC,CAAC;QAHT,qBAAgB,GAAoB,EAAE,CAAC;QAI7C,IAAI,CAAC,gCAAgC,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,IAAI,kCAAc,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAkC,CAAC,CAAC;QACxF,IAAI,CAAC,QAAQ,GAAG,mCAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,6BAAS,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QAE1C,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,QAAkB,EAAE,EAAE;YAC7D,KAAK,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;;gBAC/C,OAAO,CAAC,KAAK,CAAC,+DAA+D,EAAE,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d,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;oBAC3F,IAAI,OAAO,GAAG,WAAW,EAAE;wBACzB,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;qBACxD;iBACF;aACF;YACD,OAAO,CAAC,KAAK,CAAC,sCAAsC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACpF,CAAC,CAAA,CAAC,EAAE,CAAC;QAEL,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;;AArMH,kCAsMC;AArMgB,kDAAkC,GAAG,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testit-adapter-cucumber",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Cucumber adapter for Test IT",
|
|
5
5
|
"main": "dist/formatter.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@cucumber/cucumber": "^7.3.1",
|
|
25
25
|
"@cucumber/messages": "^17.1.1",
|
|
26
|
-
"testit-js-commons": "
|
|
26
|
+
"testit-js-commons": "4.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|