@wdio/cucumber-framework 9.2.8 → 9.2.14
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cucumberFormatter.d.ts","sourceRoot":"","sources":["../src/cucumberFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAU,MAAM,oBAAoB,CAAA;AAQtD,OAAO,KAAK,EAER,eAAe,EAEf,OAAO,EACP,MAAM,EAEN,UAAU,EACV,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,cAAc,EAEd,IAAI,EACP,MAAM,oBAAoB,CAAA;AAY3B,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,YAAY,CAAA;AAE9D,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,SAAS;IACpD,OAAO,CAAC,iBAAiB,CAAwB;IACjD,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,UAAU,CAAe;IACjC,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,gBAAgB,CAAC,CAAiB;IAC1C,OAAO,CAAC,cAAc,CAAC,CAAiB;IACxC,OAAO,CAAC,SAAS,CAAiC;IAClD,OAAO,CAAC,UAAU,CAAiC;IACnD,OAAO,CAAC,WAAW,CAAoC;IACvD,OAAO,CAAC,gBAAgB,CAAe;IAEvC,OAAO,CAAC,QAAQ,CAAc;IAC9B,OAAO,CAAC,GAAG,CAAQ;IACnB,OAAO,CAAC,KAAK,CAAU;IACvB,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,qBAAqB,CAAS;IACtC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,0BAA0B,CAAS;IAC3C,OAAO,CAAC,wBAAwB,CAAS;IAEzC,OAAO,CAAC,WAAW,CAA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AAC,SAAS,EAAE,IAAI;IAItB,gBAAgB;IAsBhB,gBAAgB,CAAC,WAAW,EAAE,MAAM;IAQpC,kBAAkB,CAAC,QAAQ,EAAE,QAAQ;IAIrC,iBAAiB,CAAC,QAAQ,EAAE,eAAe;IAwG3C,iBAAiB,CAAC,oBAAoB,EAAE,eAAe;IAiDvD,kBAAkB,CAAC,qBAAqB,EAAE,gBAAgB;IAoD1D,kBAAkB,CAAC,OAAO,EAAE,cAAc,EAAE;IAyC5C,iBAAiB;CA2CpB"}
|
|
@@ -266,8 +266,6 @@ var CucumberFormatter = class extends Formatter {
|
|
|
266
266
|
this.failedCount++;
|
|
267
267
|
error = new Error(result.message?.split("\n")[0]);
|
|
268
268
|
error.stack = result.message;
|
|
269
|
-
} else if (result.willBeRetried) {
|
|
270
|
-
state = "retry";
|
|
271
269
|
}
|
|
272
270
|
const common = {
|
|
273
271
|
title,
|
|
@@ -392,6 +390,10 @@ var CucumberFormatter = class extends Formatter {
|
|
|
392
390
|
tags: reporterScenario.tags,
|
|
393
391
|
rule: reporterScenario.rule
|
|
394
392
|
};
|
|
393
|
+
const isRetry = typeof testcase.attempt === "number" && testcase.attempt > 0;
|
|
394
|
+
if (!this.scenarioLevelReporter && isRetry) {
|
|
395
|
+
return this.emit("suite:retry", payload);
|
|
396
|
+
}
|
|
395
397
|
this.emit(this.scenarioLevelReporter ? "test:start" : "suite:start", payload);
|
|
396
398
|
}
|
|
397
399
|
onTestStepStarted(testStepStartedEvent) {
|
|
@@ -431,38 +433,32 @@ var CucumberFormatter = class extends Formatter {
|
|
|
431
433
|
}
|
|
432
434
|
}
|
|
433
435
|
onTestStepFinished(testStepFinishedEvent) {
|
|
434
|
-
if (
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
scenario,
|
|
461
|
-
step,
|
|
462
|
-
result
|
|
463
|
-
);
|
|
464
|
-
}
|
|
465
|
-
return this.afterTest(
|
|
436
|
+
if (this.scenarioLevelReporter) {
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
const testcase = this._testCases.find(
|
|
440
|
+
(testcase2) => testcase2.id === this._currentTestCase?.testCaseId
|
|
441
|
+
);
|
|
442
|
+
const scenario = this._scenarios.find(
|
|
443
|
+
(sc) => sc.id === this._suiteMap.get(testcase?.pickleId)
|
|
444
|
+
);
|
|
445
|
+
const teststep = testcase?.testSteps?.find(
|
|
446
|
+
(step2) => step2.id === testStepFinishedEvent.testStepId
|
|
447
|
+
);
|
|
448
|
+
const step = scenario?.steps?.find((s) => s.id === teststep?.pickleStepId) || teststep;
|
|
449
|
+
const result = testStepFinishedEvent.testStepResult;
|
|
450
|
+
const doc = this._gherkinDocEvents.find(
|
|
451
|
+
(gde) => gde.uri === scenario?.uri
|
|
452
|
+
);
|
|
453
|
+
const uri = doc?.uri;
|
|
454
|
+
const feature = doc?.feature;
|
|
455
|
+
if (!step) {
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
delete this._currentPickle;
|
|
459
|
+
const type = getStepType(step);
|
|
460
|
+
if (type === "hook") {
|
|
461
|
+
return this.afterHook(
|
|
466
462
|
uri,
|
|
467
463
|
feature,
|
|
468
464
|
scenario,
|
|
@@ -470,6 +466,13 @@ var CucumberFormatter = class extends Formatter {
|
|
|
470
466
|
result
|
|
471
467
|
);
|
|
472
468
|
}
|
|
469
|
+
return this.afterTest(
|
|
470
|
+
uri,
|
|
471
|
+
feature,
|
|
472
|
+
scenario,
|
|
473
|
+
step,
|
|
474
|
+
result
|
|
475
|
+
);
|
|
473
476
|
}
|
|
474
477
|
onTestCaseFinished(results) {
|
|
475
478
|
const tc = this._testCases.find(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cucumber-framework",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.14",
|
|
4
4
|
"description": "A WebdriverIO plugin. Adapter for Cucumber.js testing framework.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cucumber-framework",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "6ba40850cc38dbb9a9622bee11939a19fb45bead"
|
|
60
60
|
}
|