allure-playwright 3.14.0 → 3.16.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/README.md +29 -3
- package/dist/cjs/index.js +92 -37
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model.js.map +1 -1
- package/dist/cjs/testplan.js +23 -2
- package/dist/cjs/testplan.js.map +1 -1
- package/dist/cjs/utils.js +39 -3
- package/dist/cjs/utils.js.map +1 -1
- package/dist/esm/index.js +94 -39
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model.js.map +1 -1
- package/dist/esm/testplan.js +23 -2
- package/dist/esm/testplan.js.map +1 -1
- package/dist/esm/utils.js +39 -3
- package/dist/esm/utils.js.map +1 -1
- package/dist/types/index.d.ts +5 -1
- package/dist/types/model.d.ts +6 -0
- package/dist/types/testplan.d.ts +1 -1
- package/dist/types/utils.d.ts +9 -1
- package/package.json +13 -12
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ npm install -D allure-playwright
|
|
|
34
34
|
|
|
35
35
|
Install Allure Report separately when you want to render the generated `allure-results`:
|
|
36
36
|
|
|
37
|
-
- follow the [Allure Report 2 installation guide](https://allurereport.org/docs/install/) to use the `allure` CLI
|
|
37
|
+
- follow the [Allure Report 2 installation guide](https://allurereport.org/docs/v2/install/) to use the `allure` CLI
|
|
38
38
|
- or install Allure Report 3 with `npm install -D allure` to use `npx allure`
|
|
39
39
|
|
|
40
40
|
## Supported versions and platforms
|
|
@@ -42,7 +42,7 @@ Install Allure Report separately when you want to render the generated `allure-r
|
|
|
42
42
|
- `"allure-playwright": ">=3.12.0"` requires `"@playwright/test": ">=1.62.0"`.
|
|
43
43
|
- To use `"@playwright/test": ">=1.53.0 <1.62.0"`, use `"allure-playwright": "<=3.11.1"`.
|
|
44
44
|
- Linux, macOS, and Windows wherever Playwright Test supports Node.js
|
|
45
|
-
- this repository is validated in CI on Node.js
|
|
45
|
+
- this repository is validated in CI on Node.js 24 and 26
|
|
46
46
|
|
|
47
47
|
## Usage
|
|
48
48
|
|
|
@@ -77,6 +77,32 @@ directory.
|
|
|
77
77
|
|
|
78
78
|
You may select another location, or further customize the reporter's behavior with [the configuration options](https://allurereport.org/docs/playwright-configuration/).
|
|
79
79
|
|
|
80
|
+
To hide steps generated from Playwright annotations that are not mapped to Allure metadata, set
|
|
81
|
+
`reportAnnotations: false`:
|
|
82
|
+
|
|
83
|
+
```js
|
|
84
|
+
export default defineConfig({
|
|
85
|
+
reporter: [["allure-playwright", { reportAnnotations: false }]],
|
|
86
|
+
});
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Annotation steps are enabled by default, independently of `detail`. This option only controls their
|
|
90
|
+
presentation as steps: labels, links, descriptions, and skip/fixme handling are preserved. The original
|
|
91
|
+
annotations remain available to Playwright and other reporters.
|
|
92
|
+
|
|
93
|
+
To hide Playwright API calls while keeping `expect` assertions as steps, set `reportMatchers: true`
|
|
94
|
+
with `detail: false`:
|
|
95
|
+
|
|
96
|
+
```js
|
|
97
|
+
export default defineConfig({
|
|
98
|
+
reporter: [["allure-playwright", { detail: false, reportMatchers: true }]],
|
|
99
|
+
});
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`reportMatchers` controls Playwright `expect` steps, including assertions in hooks. When omitted,
|
|
103
|
+
it follows `detail` (`true` by default). Set `reportMatchers: false` to hide assertion steps while
|
|
104
|
+
keeping other details enabled. User-created steps and attachments are reported independently.
|
|
105
|
+
|
|
80
106
|
To use name-based test selectors instead of source locations, enable the legacy full name format:
|
|
81
107
|
|
|
82
108
|
```js
|
|
@@ -111,8 +137,8 @@ npx allure open ./allure-report
|
|
|
111
137
|
Enhance the report by utilizing the runtime API:
|
|
112
138
|
|
|
113
139
|
```js
|
|
114
|
-
import { describe, test } from "playwright";
|
|
115
140
|
import * as allure from "allure-js-commons";
|
|
141
|
+
import { describe, test } from "playwright";
|
|
116
142
|
|
|
117
143
|
describe("signing in with a password", () => {
|
|
118
144
|
test("sign in with a valid password", async () => {
|
package/dist/cjs/index.js
CHANGED
|
@@ -82,7 +82,11 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
82
82
|
_defineProperty(this, "pwStepUuid", new WeakMap());
|
|
83
83
|
_defineProperty(this, "testFullNames", new WeakMap());
|
|
84
84
|
_defineProperty(this, "emittedHookGlobalErrorKeys", new Set());
|
|
85
|
-
_defineProperty(this, "testPlan", (0, _reporter.parseTestPlan)(
|
|
85
|
+
_defineProperty(this, "testPlan", (0, _reporter.parseTestPlan)({
|
|
86
|
+
enableExcludedTests: true
|
|
87
|
+
}));
|
|
88
|
+
_defineProperty(this, "replayedBlobCount", 0);
|
|
89
|
+
_defineProperty(this, "activeBlobIndex", void 0);
|
|
86
90
|
this.options = _objectSpread({
|
|
87
91
|
suiteTitle: true,
|
|
88
92
|
detail: true
|
|
@@ -94,7 +98,7 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
94
98
|
var _preprocess = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
|
|
95
99
|
var suite, testRun, readonlyProjectNames, _iterator, _step, projectSuite, project, _iterator2, _step2, _projectSuite, _project, readonlyProject, _iterator3, _step3, test, metadata, _t, _t2;
|
|
96
100
|
return _regenerator().w(function (_context) {
|
|
97
|
-
while (1) switch (_context.n) {
|
|
101
|
+
while (1) switch (_context.p = _context.n) {
|
|
98
102
|
case 0:
|
|
99
103
|
suite = _ref.suite, testRun = _ref.testRun;
|
|
100
104
|
if (this.testPlan) {
|
|
@@ -197,8 +201,20 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
197
201
|
key: "onConfigure",
|
|
198
202
|
value: function onConfigure(config) {
|
|
199
203
|
this.config = config;
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
204
|
+
this.replayedBlobCount = 0;
|
|
205
|
+
this.activeBlobIndex = undefined;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// Playwright's v2 merge dispatcher brackets each blob with these callbacks.
|
|
209
|
+
}, {
|
|
210
|
+
key: "onReportConfigure",
|
|
211
|
+
value: function onReportConfigure() {
|
|
212
|
+
this.activeBlobIndex = ++this.replayedBlobCount;
|
|
213
|
+
}
|
|
214
|
+
}, {
|
|
215
|
+
key: "onReportEnd",
|
|
216
|
+
value: function onReportEnd() {
|
|
217
|
+
this.activeBlobIndex = undefined;
|
|
202
218
|
}
|
|
203
219
|
}, {
|
|
204
220
|
key: "onError",
|
|
@@ -215,7 +231,10 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
215
231
|
}, {
|
|
216
232
|
key: "onBegin",
|
|
217
233
|
value: function onBegin(suite) {
|
|
234
|
+
var _this$config$projects, _this$config$projects2;
|
|
218
235
|
this.suite = suite;
|
|
236
|
+
this.outputDir = (_this$config$projects = this.config.projects[0]) === null || _this$config$projects === void 0 ? void 0 : _this$config$projects.outputDir;
|
|
237
|
+
this.snapshotDir = (_this$config$projects2 = this.config.projects[0]) === null || _this$config$projects2 === void 0 ? void 0 : _this$config$projects2.snapshotDir;
|
|
219
238
|
this.emittedHookGlobalErrorKeys.clear();
|
|
220
239
|
this.allureRuntime = new _reporter.ReporterRuntime(_objectSpread(_objectSpread({}, this.options), {}, {
|
|
221
240
|
writer: (0, _reporter.createDefaultWriter)({
|
|
@@ -225,12 +244,13 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
225
244
|
}
|
|
226
245
|
}, {
|
|
227
246
|
key: "onTestBegin",
|
|
228
|
-
value: function onTestBegin(test) {
|
|
247
|
+
value: function onTestBegin(test, testResult) {
|
|
229
248
|
var _metadata$relativeFil, _metadata$project, _metadata$project2;
|
|
230
249
|
var metadata = this.getStaticTestMetadata(test);
|
|
231
250
|
var titlePath = metadata.projectName ? [metadata.projectName].concat(_toConsumableArray(metadata.relativeFileParts), _toConsumableArray(metadata.suiteTitles)) : (_metadata$relativeFil = metadata.relativeFileParts).concat.apply(_metadata$relativeFil, _toConsumableArray(metadata.suiteTitles));
|
|
232
251
|
var result = {
|
|
233
252
|
name: metadata.titleMetadata.cleanTitle,
|
|
253
|
+
start: testResult.startTime.getTime(),
|
|
234
254
|
labels: [].concat(_toConsumableArray(metadata.titleMetadata.labels), _toConsumableArray((0, _reporter.getEnvironmentLabels)())),
|
|
235
255
|
links: _toConsumableArray(metadata.titleMetadata.links),
|
|
236
256
|
parameters: [],
|
|
@@ -293,6 +313,9 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
293
313
|
result.labels.push(annotationLabel);
|
|
294
314
|
continue;
|
|
295
315
|
}
|
|
316
|
+
if (this.options.reportAnnotations === false) {
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
296
319
|
result.steps.push({
|
|
297
320
|
name: "".concat(annotation.type, ": ").concat(annotation.description),
|
|
298
321
|
status: _allureJsCommons.Status.PASSED,
|
|
@@ -581,7 +604,7 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
581
604
|
}, {
|
|
582
605
|
key: "onStepBegin",
|
|
583
606
|
value: function onStepBegin(test, _result, step) {
|
|
584
|
-
var
|
|
607
|
+
var _assertClassBrand$cal;
|
|
585
608
|
var testUuid = this.allureResultsUuids.get(test.id);
|
|
586
609
|
if (!testUuid) {
|
|
587
610
|
// eslint-disable-next-line no-console
|
|
@@ -604,11 +627,9 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
604
627
|
uuid: (0, _reporter.randomUuid)()
|
|
605
628
|
});
|
|
606
629
|
if (["test.attach", "attach"].includes(step.category) && !isHookStep) {
|
|
607
|
-
var _this$pwStepUuid$get;
|
|
608
|
-
var parent = step.parent ? (_this$pwStepUuid$get = this.pwStepUuid.get(step.parent)) !== null && _this$pwStepUuid$get !== void 0 ? _this$pwStepUuid$get : null : null;
|
|
609
630
|
this.attachmentTargetByStep.set(step, {
|
|
610
631
|
name: (0, _utils.normalizeAttachStepTitle)(step.title),
|
|
611
|
-
stepUuid:
|
|
632
|
+
stepUuid: _assertClassBrand(_AllureReporter_brand, this, _getReportedParentUuid).call(this, step)
|
|
612
633
|
});
|
|
613
634
|
return;
|
|
614
635
|
}
|
|
@@ -650,7 +671,7 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
650
671
|
}
|
|
651
672
|
return;
|
|
652
673
|
}
|
|
653
|
-
var parentUuid =
|
|
674
|
+
var parentUuid = (_assertClassBrand$cal = _assertClassBrand(_AllureReporter_brand, this, _getReportedParentUuid).call(this, step)) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : null;
|
|
654
675
|
var createdUuid = this.allureRuntime.startStep(testUuid, parentUuid, baseStep);
|
|
655
676
|
if (createdUuid) {
|
|
656
677
|
this.pwStepUuid.set(step, createdUuid);
|
|
@@ -736,9 +757,9 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
736
757
|
var _onTestEnd = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(test, result) {
|
|
737
758
|
var _this2 = this,
|
|
738
759
|
_this$attachmentTarge2;
|
|
739
|
-
var testUuid, threadId,
|
|
760
|
+
var testUuid, threadId, blob, thread, _test$parent$titlePat, _test$parent$titlePat2, projectSuiteTitle, fileSuiteTitle, suiteTitles, beforeHooksStack, afterHooksStack, targets, targetsByName, _iterator7, _step7, _targetsByName$get, t, q, takeByName, _iterator8, _step8, attachment, isRuntimeMessage, stepInfo, _stepInfo$hookStep$uu2, _stepInfo$hookStep2, message, targetStack, _targetStack, stepUuid, _targetStack2, stepResult, fileName, _t3;
|
|
740
761
|
return _regenerator().w(function (_context3) {
|
|
741
|
-
while (1) switch (_context3.n) {
|
|
762
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
742
763
|
case 0:
|
|
743
764
|
testUuid = this.allureResultsUuids.get(test.id);
|
|
744
765
|
if (testUuid) {
|
|
@@ -751,9 +772,9 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
751
772
|
case 1:
|
|
752
773
|
// We need to check parallelIndex first because pw introduced this field only in v1.30.0
|
|
753
774
|
threadId = result.parallelIndex !== undefined ? result.parallelIndex : result.workerIndex;
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
_test$parent$titlePat = test.parent.titlePath(), _test$parent$titlePat2 = _toArray(_test$parent$titlePat), projectSuiteTitle = _test$parent$titlePat2[1], fileSuiteTitle = _test$parent$titlePat2[2], suiteTitles = _test$parent$titlePat2.slice(3);
|
|
775
|
+
blob = this.activeBlobIndex === undefined ? "" : "-blob-".concat(this.activeBlobIndex);
|
|
776
|
+
thread = "pid-".concat(_nodeProcess["default"].pid).concat(blob, "-worker-").concat(threadId); // only apply default suites if not set by user
|
|
777
|
+
_test$parent$titlePat = test.parent.titlePath(), _test$parent$titlePat2 = _toArray(_test$parent$titlePat), projectSuiteTitle = _test$parent$titlePat2[1], fileSuiteTitle = _test$parent$titlePat2[2], suiteTitles = _arrayLikeToArray(_test$parent$titlePat2).slice(3);
|
|
757
778
|
beforeHooksStack = this.beforeHooksStepsStack.get(test.id);
|
|
758
779
|
afterHooksStack = this.afterHooksStepsStack.get(test.id);
|
|
759
780
|
this.allureRuntime.updateTest(testUuid, function (testResult) {
|
|
@@ -777,8 +798,20 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
777
798
|
value: suiteTitles.join(" > ")
|
|
778
799
|
});
|
|
779
800
|
}
|
|
780
|
-
if (
|
|
781
|
-
|
|
801
|
+
if (result.errors.length > 0) {
|
|
802
|
+
var details = result.errors.map(function (error) {
|
|
803
|
+
return (0, _utils.getStatusDetails)(error);
|
|
804
|
+
});
|
|
805
|
+
testResult.statusDetails = _objectSpread(_objectSpread({}, details[0]), {}, {
|
|
806
|
+
message: details.map(function (_ref3) {
|
|
807
|
+
var message = _ref3.message;
|
|
808
|
+
return message;
|
|
809
|
+
}).filter(Boolean).join("\n\n") || undefined,
|
|
810
|
+
trace: details.map(function (_ref4) {
|
|
811
|
+
var trace = _ref4.trace;
|
|
812
|
+
return trace;
|
|
813
|
+
}).filter(Boolean).join("\n\n") || undefined
|
|
814
|
+
});
|
|
782
815
|
} else {
|
|
783
816
|
var _test$annotations;
|
|
784
817
|
var skipReason = (_test$annotations = test.annotations) === null || _test$annotations === void 0 || (_test$annotations = _test$annotations.find(function (annotation) {
|
|
@@ -955,7 +988,7 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
955
988
|
testResult.labels = newLabels;
|
|
956
989
|
});
|
|
957
990
|
this.allureRuntime.stopTest(testUuid, {
|
|
958
|
-
|
|
991
|
+
stop: result.startTime.getTime() + result.duration
|
|
959
992
|
});
|
|
960
993
|
this.allureRuntime.writeTest(testUuid);
|
|
961
994
|
this.attachmentTargets["delete"](test.id);
|
|
@@ -974,10 +1007,10 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
974
1007
|
key: "emitGlobalErrorFromHookStep",
|
|
975
1008
|
value: function emitGlobalErrorFromHookStep(step) {
|
|
976
1009
|
var _details$message, _details$trace;
|
|
977
|
-
if (!step.error || !isGlobalErrorHookStep(step)) {
|
|
1010
|
+
if (!step.error || !isGlobalErrorHookStep(step) || (0, _utils.getSkipModifierError)(step.error)) {
|
|
978
1011
|
return;
|
|
979
1012
|
}
|
|
980
|
-
var details = (0,
|
|
1013
|
+
var details = (0, _utils.getStatusDetails)(step.error);
|
|
981
1014
|
var key = [step.title, step.startTime.getTime(), (_details$message = details.message) !== null && _details$message !== void 0 ? _details$message : "", (_details$trace = details.trace) !== null && _details$trace !== void 0 ? _details$trace : ""].join("\0");
|
|
982
1015
|
if (this.emittedHookGlobalErrorKeys.has(key)) {
|
|
983
1016
|
return;
|
|
@@ -994,9 +1027,9 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
994
1027
|
value: function () {
|
|
995
1028
|
var _addSkippedResults = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
996
1029
|
var _this3 = this;
|
|
997
|
-
var unprocessedCases, _iterator9, _step9, testCase, _t4;
|
|
1030
|
+
var unprocessedCases, _iterator9, _step9, testCase, result, _t4;
|
|
998
1031
|
return _regenerator().w(function (_context4) {
|
|
999
|
-
while (1) switch (_context4.n) {
|
|
1032
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
1000
1033
|
case 0:
|
|
1001
1034
|
unprocessedCases = this.suite.allTests().filter(function (testCase) {
|
|
1002
1035
|
var title = testCase.title;
|
|
@@ -1012,9 +1045,7 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
1012
1045
|
break;
|
|
1013
1046
|
}
|
|
1014
1047
|
testCase = _step9.value;
|
|
1015
|
-
|
|
1016
|
-
_context4.n = 3;
|
|
1017
|
-
return this.onTestEnd(testCase, {
|
|
1048
|
+
result = {
|
|
1018
1049
|
status: _allureJsCommons.Status.SKIPPED,
|
|
1019
1050
|
attachments: [],
|
|
1020
1051
|
duration: 0,
|
|
@@ -1027,7 +1058,10 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
1027
1058
|
stdout: [],
|
|
1028
1059
|
startTime: this.globalStartTime,
|
|
1029
1060
|
annotations: []
|
|
1030
|
-
}
|
|
1061
|
+
};
|
|
1062
|
+
this.onTestBegin(testCase, result);
|
|
1063
|
+
_context4.n = 3;
|
|
1064
|
+
return this.onTestEnd(testCase, result);
|
|
1031
1065
|
case 3:
|
|
1032
1066
|
_context4.n = 2;
|
|
1033
1067
|
break;
|
|
@@ -1122,11 +1156,11 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
1122
1156
|
}, {
|
|
1123
1157
|
key: "getStaticTestMetadata",
|
|
1124
1158
|
value: function getStaticTestMetadata(test) {
|
|
1125
|
-
var
|
|
1159
|
+
var _ref5, _test$parent$project, _titleMetadata$labels;
|
|
1126
1160
|
var titleMetadata = (0, _sdk.extractMetadataFromString)(test.title);
|
|
1127
|
-
var project = (
|
|
1161
|
+
var project = (_ref5 = (_test$parent$project = test.parent.project()) !== null && _test$parent$project !== void 0 ? _test$parent$project : this.config.projects.find(function (candidate) {
|
|
1128
1162
|
return test.location.file === candidate.testDir || test.location.file.startsWith("".concat(candidate.testDir).concat(_nodePath["default"].sep));
|
|
1129
|
-
})) !== null &&
|
|
1163
|
+
})) !== null && _ref5 !== void 0 ? _ref5 : this.config.projects[0];
|
|
1130
1164
|
var testFilePath = _nodePath["default"].relative(project.testDir, test.location.file);
|
|
1131
1165
|
var relativeFileParts = testFilePath.split(_nodePath["default"].sep);
|
|
1132
1166
|
var relativeFile = relativeFileParts.join("/");
|
|
@@ -1186,20 +1220,31 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
1186
1220
|
key: "isInTestPlan",
|
|
1187
1221
|
value: function isInTestPlan(test) {
|
|
1188
1222
|
var metadata = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getStaticTestMetadata(test);
|
|
1189
|
-
|
|
1223
|
+
var testPlan = this.testPlan;
|
|
1224
|
+
if (!testPlan) {
|
|
1190
1225
|
return true;
|
|
1191
1226
|
}
|
|
1192
1227
|
var fullName = metadata.fullName,
|
|
1193
1228
|
locationFullName = metadata.locationFullName,
|
|
1194
1229
|
legacyFullName = metadata.legacyFullName,
|
|
1195
1230
|
staticAllureId = metadata.staticAllureId;
|
|
1196
|
-
|
|
1231
|
+
var subjects = [{
|
|
1197
1232
|
fullName: locationFullName,
|
|
1198
1233
|
nativeSelector: fullName,
|
|
1199
1234
|
id: staticAllureId
|
|
1200
|
-
}
|
|
1235
|
+
}, {
|
|
1201
1236
|
fullName: legacyFullName,
|
|
1202
1237
|
id: staticAllureId
|
|
1238
|
+
}];
|
|
1239
|
+
var exclusionPlan = _objectSpread(_objectSpread({}, testPlan), {}, {
|
|
1240
|
+
tests: []
|
|
1241
|
+
});
|
|
1242
|
+
return subjects.some(function (subject) {
|
|
1243
|
+
return (0, _reporter.includedInTestPlan)(testPlan, subject);
|
|
1244
|
+
}) && subjects.every(function (subject) {
|
|
1245
|
+
return (0, _reporter.includedInTestPlan)(exclusionPlan, subject, {
|
|
1246
|
+
enableExcludedTests: true
|
|
1247
|
+
});
|
|
1203
1248
|
});
|
|
1204
1249
|
}
|
|
1205
1250
|
}, {
|
|
@@ -1310,7 +1355,7 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
1310
1355
|
return _context8.a(2);
|
|
1311
1356
|
case 8:
|
|
1312
1357
|
fileExists = /*#__PURE__*/function () {
|
|
1313
|
-
var
|
|
1358
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(filePath) {
|
|
1314
1359
|
return _regenerator().w(function (_context6) {
|
|
1315
1360
|
while (1) switch (_context6.n) {
|
|
1316
1361
|
case 0:
|
|
@@ -1326,11 +1371,11 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
1326
1371
|
}, _callee6);
|
|
1327
1372
|
}));
|
|
1328
1373
|
return function fileExists(_x8) {
|
|
1329
|
-
return
|
|
1374
|
+
return _ref6.apply(this, arguments);
|
|
1330
1375
|
};
|
|
1331
1376
|
}();
|
|
1332
1377
|
readImageFromDirs = /*#__PURE__*/function () {
|
|
1333
|
-
var
|
|
1378
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(modifier) {
|
|
1334
1379
|
var defaultPath, snapshotPath;
|
|
1335
1380
|
return _regenerator().w(function (_context7) {
|
|
1336
1381
|
while (1) switch (_context7.n) {
|
|
@@ -1366,7 +1411,7 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
1366
1411
|
}, _callee7);
|
|
1367
1412
|
}));
|
|
1368
1413
|
return function readImageFromDirs(_x9) {
|
|
1369
|
-
return
|
|
1414
|
+
return _ref7.apply(this, arguments);
|
|
1370
1415
|
};
|
|
1371
1416
|
}();
|
|
1372
1417
|
_context8.n = 9;
|
|
@@ -1413,7 +1458,9 @@ var AllureReporter = exports.AllureReporter = /*#__PURE__*/function () {
|
|
|
1413
1458
|
* @deprecated for removal, import functions directly from "allure-js-commons".
|
|
1414
1459
|
*/
|
|
1415
1460
|
function _shouldIgnoreStep(step) {
|
|
1416
|
-
|
|
1461
|
+
var _this$options$reportM;
|
|
1462
|
+
var detail = step.category === "expect" ? (_this$options$reportM = this.options.reportMatchers) !== null && _this$options$reportM !== void 0 ? _this$options$reportM : this.options.detail : this.options.detail;
|
|
1463
|
+
if (!detail && !["test.step", "attach", "test.attach"].includes(step.category)) {
|
|
1417
1464
|
return true;
|
|
1418
1465
|
}
|
|
1419
1466
|
|
|
@@ -1428,6 +1475,14 @@ function _shouldIgnoreStep(step) {
|
|
|
1428
1475
|
}
|
|
1429
1476
|
return false;
|
|
1430
1477
|
}
|
|
1478
|
+
function _getReportedParentUuid(step) {
|
|
1479
|
+
for (var parent = step.parent; parent; parent = parent.parent) {
|
|
1480
|
+
var uuid = this.pwStepUuid.get(parent);
|
|
1481
|
+
if (uuid !== undefined) {
|
|
1482
|
+
return uuid;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1431
1486
|
function _getOrCreateHookStack(testId, isBeforeHook, startTime) {
|
|
1432
1487
|
var map = isBeforeHook ? this.beforeHooksStepsStack : this.afterHooksStepsStack;
|
|
1433
1488
|
var stack = map.get(testId);
|