allure-cypress 2.14.0 → 2.15.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/reporter.js DELETED
@@ -1,3368 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
8
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
- };
10
- var __export = (target, all) => {
11
- for (var name in all)
12
- __defProp(target, name, { get: all[name], enumerable: true });
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
- mod
29
- ));
30
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
-
32
- // ../../.yarn/cache/ansi-regex-npm-4.1.1-af0a582bb9-b1a6ee44cb.zip/node_modules/ansi-regex/index.js
33
- var require_ansi_regex = __commonJS({
34
- "../../.yarn/cache/ansi-regex-npm-4.1.1-af0a582bb9-b1a6ee44cb.zip/node_modules/ansi-regex/index.js"(exports2, module2) {
35
- "use strict";
36
- module2.exports = (options) => {
37
- options = Object.assign({
38
- onlyFirst: false
39
- }, options);
40
- const pattern = [
41
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
42
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
43
- ].join("|");
44
- return new RegExp(pattern, options.onlyFirst ? void 0 : "g");
45
- };
46
- }
47
- });
48
-
49
- // ../../.yarn/cache/strip-ansi-npm-5.2.0-275214c316-bdb5f76ade.zip/node_modules/strip-ansi/index.js
50
- var require_strip_ansi = __commonJS({
51
- "../../.yarn/cache/strip-ansi-npm-5.2.0-275214c316-bdb5f76ade.zip/node_modules/strip-ansi/index.js"(exports2, module2) {
52
- "use strict";
53
- var ansiRegex = require_ansi_regex();
54
- var stripAnsi = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
55
- module2.exports = stripAnsi;
56
- module2.exports.default = stripAnsi;
57
- }
58
- });
59
-
60
- // ../allure-js-commons/dist/src/model.js
61
- var require_model = __commonJS({
62
- "../allure-js-commons/dist/src/model.js"(exports2) {
63
- "use strict";
64
- Object.defineProperty(exports2, "__esModule", { value: true });
65
- exports2.LinkType = exports2.ContentType = exports2.Severity = exports2.LabelName = exports2.Stage = exports2.Status = exports2.ALLURE_SKIPPED_BY_TEST_PLAN_LABEL = exports2.ALLURE_IMAGEDIFF_CONTENT_TYPE = exports2.ALLURE_METADATA_CONTENT_TYPE = void 0;
66
- exports2.ALLURE_METADATA_CONTENT_TYPE = "application/vnd.allure.metadata+json";
67
- exports2.ALLURE_IMAGEDIFF_CONTENT_TYPE = "application/vnd.allure.image.diff";
68
- exports2.ALLURE_SKIPPED_BY_TEST_PLAN_LABEL = "allure-skipped-by-test-plan";
69
- var Status;
70
- (function(Status2) {
71
- Status2["FAILED"] = "failed";
72
- Status2["BROKEN"] = "broken";
73
- Status2["PASSED"] = "passed";
74
- Status2["SKIPPED"] = "skipped";
75
- })(Status || (exports2.Status = Status = {}));
76
- var Stage2;
77
- (function(Stage3) {
78
- Stage3["SCHEDULED"] = "scheduled";
79
- Stage3["RUNNING"] = "running";
80
- Stage3["FINISHED"] = "finished";
81
- Stage3["PENDING"] = "pending";
82
- Stage3["INTERRUPTED"] = "interrupted";
83
- })(Stage2 || (exports2.Stage = Stage2 = {}));
84
- var LabelName2;
85
- (function(LabelName3) {
86
- LabelName3["ALLURE_ID"] = "ALLURE_ID";
87
- LabelName3["AS_ID"] = "ALLURE_ID";
88
- LabelName3["SUITE"] = "suite";
89
- LabelName3["PARENT_SUITE"] = "parentSuite";
90
- LabelName3["SUB_SUITE"] = "subSuite";
91
- LabelName3["EPIC"] = "epic";
92
- LabelName3["FEATURE"] = "feature";
93
- LabelName3["STORY"] = "story";
94
- LabelName3["SEVERITY"] = "severity";
95
- LabelName3["TAG"] = "tag";
96
- LabelName3["OWNER"] = "owner";
97
- LabelName3["LEAD"] = "lead";
98
- LabelName3["HOST"] = "host";
99
- LabelName3["THREAD"] = "thread";
100
- LabelName3["TEST_METHOD"] = "testMethod";
101
- LabelName3["TEST_CLASS"] = "testClass";
102
- LabelName3["PACKAGE"] = "package";
103
- LabelName3["FRAMEWORK"] = "framework";
104
- LabelName3["LANGUAGE"] = "language";
105
- LabelName3["LAYER"] = "layer";
106
- })(LabelName2 || (exports2.LabelName = LabelName2 = {}));
107
- var Severity;
108
- (function(Severity2) {
109
- Severity2["BLOCKER"] = "blocker";
110
- Severity2["CRITICAL"] = "critical";
111
- Severity2["NORMAL"] = "normal";
112
- Severity2["MINOR"] = "minor";
113
- Severity2["TRIVIAL"] = "trivial";
114
- })(Severity || (exports2.Severity = Severity = {}));
115
- var ContentType;
116
- (function(ContentType2) {
117
- ContentType2["TEXT"] = "text/plain";
118
- ContentType2["XML"] = "application/xml";
119
- ContentType2["HTML"] = "text/html";
120
- ContentType2["CSV"] = "text/csv";
121
- ContentType2["TSV"] = "text/tab-separated-values";
122
- ContentType2["CSS"] = "text/css";
123
- ContentType2["URI"] = "text/uri-list";
124
- ContentType2["SVG"] = "image/svg+xml";
125
- ContentType2["PNG"] = "image/png";
126
- ContentType2["JSON"] = "application/json";
127
- ContentType2["ZIP"] = "application/zip";
128
- ContentType2["WEBM"] = "video/webm";
129
- ContentType2["JPEG"] = "image/jpeg";
130
- ContentType2["MP4"] = "video/mp4";
131
- })(ContentType || (exports2.ContentType = ContentType = {}));
132
- var LinkType;
133
- (function(LinkType2) {
134
- LinkType2["ISSUE"] = "issue";
135
- LinkType2["TMS"] = "tms";
136
- })(LinkType || (exports2.LinkType = LinkType = {}));
137
- }
138
- });
139
-
140
- // ../allure-js-commons/dist/src/AllureCommandStep.js
141
- var require_AllureCommandStep = __commonJS({
142
- "../allure-js-commons/dist/src/AllureCommandStep.js"(exports2) {
143
- "use strict";
144
- var __rest = exports2 && exports2.__rest || function(s, e) {
145
- var t = {};
146
- for (var p in s)
147
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
148
- t[p] = s[p];
149
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
150
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
151
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
152
- t[p[i]] = s[p[i]];
153
- }
154
- return t;
155
- };
156
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
157
- return mod && mod.__esModule ? mod : { "default": mod };
158
- };
159
- Object.defineProperty(exports2, "__esModule", { value: true });
160
- exports2.AllureCommandStepExecutable = void 0;
161
- var strip_ansi_1 = __importDefault(require_strip_ansi());
162
- var model_1 = require_model();
163
- var AllureCommandStepExecutable = class _AllureCommandStepExecutable {
164
- constructor(name) {
165
- this.name = "";
166
- this.attachments = [];
167
- this.metadata = {};
168
- this.name = name;
169
- }
170
- static toExecutableItem(runtime, stepMetadata) {
171
- var _a, _b;
172
- const executable = Object.assign(Object.assign({}, stepMetadata), { attachments: [], steps: [] });
173
- if (((_a = stepMetadata.attachments) === null || _a === void 0 ? void 0 : _a.length) > 0) {
174
- stepMetadata.attachments.forEach((attachment) => {
175
- const attachmentContent = Buffer.from(attachment.content, attachment.encoding);
176
- const attachmentFilename = runtime.writeAttachment(attachmentContent, attachment.type, attachment.encoding);
177
- executable.attachments.push({
178
- name: attachment.name,
179
- type: attachment.type,
180
- source: attachmentFilename
181
- });
182
- });
183
- }
184
- if (((_b = stepMetadata.steps) === null || _b === void 0 ? void 0 : _b.length) > 0) {
185
- executable.steps = stepMetadata.steps.map((nestedStep) => _AllureCommandStepExecutable.toExecutableItem(runtime, nestedStep));
186
- }
187
- return executable;
188
- }
189
- label(label, value) {
190
- if (!this.metadata.labels) {
191
- this.metadata.labels = [];
192
- }
193
- this.metadata.labels.push({
194
- name: label,
195
- value
196
- });
197
- }
198
- link(url, name, type) {
199
- if (!this.metadata.links) {
200
- this.metadata.links = [];
201
- }
202
- this.metadata.links.push({
203
- name,
204
- url,
205
- type
206
- });
207
- }
208
- parameter(name, value, options) {
209
- if (!this.metadata.parameter) {
210
- this.metadata.parameter = [];
211
- }
212
- this.metadata.parameter.push({
213
- name,
214
- value: JSON.stringify(value),
215
- excluded: (options === null || options === void 0 ? void 0 : options.excluded) || false,
216
- mode: options === null || options === void 0 ? void 0 : options.mode
217
- });
218
- }
219
- epic(epic) {
220
- this.label(model_1.LabelName.EPIC, epic);
221
- }
222
- feature(feature) {
223
- this.label(model_1.LabelName.FEATURE, feature);
224
- }
225
- story(story) {
226
- this.label(model_1.LabelName.STORY, story);
227
- }
228
- suite(name) {
229
- this.label(model_1.LabelName.SUITE, name);
230
- }
231
- parentSuite(name) {
232
- this.label(model_1.LabelName.PARENT_SUITE, name);
233
- }
234
- subSuite(name) {
235
- this.label(model_1.LabelName.SUB_SUITE, name);
236
- }
237
- owner(owner) {
238
- this.label(model_1.LabelName.OWNER, owner);
239
- }
240
- severity(severity) {
241
- this.label(model_1.LabelName.SEVERITY, severity);
242
- }
243
- tag(tag) {
244
- this.label(model_1.LabelName.TAG, tag);
245
- }
246
- issue(name, url) {
247
- this.link(url, name, model_1.LinkType.ISSUE);
248
- }
249
- tms(name, url) {
250
- this.link(url, name, model_1.LinkType.TMS);
251
- }
252
- attach(content, type) {
253
- const isBuffer = Buffer.isBuffer(content);
254
- this.attachments.push({
255
- name: "attachment",
256
- content: isBuffer ? content.toString("base64") : content,
257
- encoding: isBuffer ? "base64" : "utf8",
258
- type
259
- });
260
- }
261
- description(content) {
262
- this.metadata.description = content;
263
- }
264
- async step(name, body) {
265
- if (!this.metadata.steps) {
266
- this.metadata.steps = [];
267
- }
268
- const nestedStep = new _AllureCommandStepExecutable(name);
269
- await nestedStep.run(body, async ({ labels = [], links = [], parameter = [], steps = [] }) => {
270
- this.metadata.labels = (this.metadata.labels || []).concat(labels);
271
- this.metadata.links = (this.metadata.links || []).concat(links);
272
- this.metadata.parameter = (this.metadata.parameter || []).concat(parameter);
273
- this.metadata.steps = (this.metadata.steps || []).concat(steps);
274
- });
275
- }
276
- async start(body) {
277
- return await new Promise((resolve) => this.run(body, async (result) => resolve(result)));
278
- }
279
- async run(body, messageEmitter) {
280
- const startDate = (/* @__PURE__ */ new Date()).getTime();
281
- try {
282
- await body.call(this, this);
283
- const _a = this.metadata, { steps = [], description = "", descriptionHtml = "" } = _a, metadata = __rest(_a, ["steps", "description", "descriptionHtml"]);
284
- await messageEmitter(Object.assign(Object.assign({}, metadata), { steps: [
285
- {
286
- name: this.name,
287
- start: startDate,
288
- stop: (/* @__PURE__ */ new Date()).getTime(),
289
- stage: model_1.Stage.FINISHED,
290
- status: model_1.Status.PASSED,
291
- statusDetails: {},
292
- attachments: this.attachments,
293
- parameters: [],
294
- steps,
295
- description
296
- }
297
- ] }));
298
- } catch (e) {
299
- const _b = this.metadata, { steps = [], description = "", descriptionHtml = "" } = _b, metadata = __rest(_b, ["steps", "description", "descriptionHtml"]);
300
- await messageEmitter(Object.assign(Object.assign({}, metadata), { steps: [
301
- {
302
- name: this.name,
303
- start: startDate,
304
- stop: (/* @__PURE__ */ new Date()).getTime(),
305
- stage: model_1.Stage.FINISHED,
306
- status: model_1.Status.BROKEN,
307
- statusDetails: {
308
- message: (0, strip_ansi_1.default)(e.message || ""),
309
- trace: (0, strip_ansi_1.default)(e.stack || "")
310
- },
311
- attachments: this.attachments,
312
- parameters: [],
313
- steps,
314
- description
315
- }
316
- ] }));
317
- throw e;
318
- }
319
- }
320
- };
321
- exports2.AllureCommandStepExecutable = AllureCommandStepExecutable;
322
- }
323
- });
324
-
325
- // ../allure-js-commons/dist/src/constructors.js
326
- var require_constructors = __commonJS({
327
- "../allure-js-commons/dist/src/constructors.js"(exports2) {
328
- "use strict";
329
- Object.defineProperty(exports2, "__esModule", { value: true });
330
- exports2.testResult = exports2.stepResult = exports2.fixtureResult = exports2.testResultContainer = void 0;
331
- var crypto_1 = require("crypto");
332
- var model_1 = require_model();
333
- var testResultContainer = () => {
334
- return {
335
- uuid: (0, crypto_1.randomUUID)(),
336
- children: [],
337
- befores: [],
338
- afters: []
339
- };
340
- };
341
- exports2.testResultContainer = testResultContainer;
342
- var fixtureResult = () => {
343
- return {
344
- status: model_1.Status.BROKEN,
345
- statusDetails: {},
346
- stage: model_1.Stage.PENDING,
347
- steps: [],
348
- attachments: [],
349
- parameters: []
350
- };
351
- };
352
- exports2.fixtureResult = fixtureResult;
353
- var stepResult = () => {
354
- return {
355
- status: void 0,
356
- statusDetails: {},
357
- stage: model_1.Stage.PENDING,
358
- steps: [],
359
- attachments: [],
360
- parameters: []
361
- };
362
- };
363
- exports2.stepResult = stepResult;
364
- var testResult = () => {
365
- return {
366
- uuid: (0, crypto_1.randomUUID)(),
367
- historyId: (0, crypto_1.randomUUID)(),
368
- status: void 0,
369
- statusDetails: {},
370
- stage: model_1.Stage.PENDING,
371
- steps: [],
372
- attachments: [],
373
- parameters: [],
374
- labels: [],
375
- links: []
376
- };
377
- };
378
- exports2.testResult = testResult;
379
- }
380
- });
381
-
382
- // ../allure-js-commons/dist/src/isPromise.js
383
- var require_isPromise = __commonJS({
384
- "../allure-js-commons/dist/src/isPromise.js"(exports2) {
385
- "use strict";
386
- Object.defineProperty(exports2, "__esModule", { value: true });
387
- exports2.isPromise = void 0;
388
- var isPromise = (obj) => !!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function";
389
- exports2.isPromise = isPromise;
390
- }
391
- });
392
-
393
- // ../allure-js-commons/dist/src/utils.js
394
- var require_utils = __commonJS({
395
- "../allure-js-commons/dist/src/utils.js"(exports2) {
396
- "use strict";
397
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
398
- return mod && mod.__esModule ? mod : { "default": mod };
399
- };
400
- Object.defineProperty(exports2, "__esModule", { value: true });
401
- exports2.extractMetadataFromString = exports2.serialize = exports2.getSuitesLabels = exports2.getStatusFromError = exports2.allureLabelRegexpGlobal = exports2.allureLabelRegexp = exports2.allureIdRegexpGlobal = exports2.allureIdRegexp = exports2.defaultReportFolder = exports2.allureReportFolder = exports2.stripAscii = exports2.readImageAsBase64 = exports2.isAllStepsEnded = exports2.isAnyStepFailed = exports2.escapeRegExp = exports2.getLabelsFromEnv = exports2.md5 = void 0;
402
- var crypto_1 = require("crypto");
403
- var promises_1 = require("fs/promises");
404
- var path_1 = __importDefault(require("path"));
405
- var process_1 = require("process");
406
- var model_1 = require_model();
407
- var md5 = (data) => (0, crypto_1.createHash)("md5").update(data).digest("hex");
408
- exports2.md5 = md5;
409
- var getLabelsFromEnv = () => {
410
- const envKeys = Object.keys(process_1.env);
411
- const labels = [];
412
- envKeys.forEach((key) => {
413
- var _a;
414
- const labelRegexp = /^ALLURE_LABEL_(?<labelName>.+)$/;
415
- const match = key.match(labelRegexp);
416
- if (match) {
417
- const labelName = (_a = match.groups) === null || _a === void 0 ? void 0 : _a.labelName;
418
- const envValue = process.env[key];
419
- if (labelName && envValue) {
420
- labels.push({ name: labelName.toLocaleLowerCase(), value: envValue });
421
- }
422
- }
423
- });
424
- return labels;
425
- };
426
- exports2.getLabelsFromEnv = getLabelsFromEnv;
427
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
428
- var reHasRegExpChar = RegExp(reRegExpChar.source);
429
- var escapeRegExp = (value) => {
430
- return reHasRegExpChar.test(value) ? value.replace(reRegExpChar, "\\$&") : value;
431
- };
432
- exports2.escapeRegExp = escapeRegExp;
433
- var isAnyStepFailed = (item) => {
434
- const isFailed = item.status === model_1.Status.FAILED;
435
- if (isFailed || item.steps.length === 0) {
436
- return isFailed;
437
- }
438
- return !!item.steps.find((step) => (0, exports2.isAnyStepFailed)(step));
439
- };
440
- exports2.isAnyStepFailed = isAnyStepFailed;
441
- var isAllStepsEnded = (item) => {
442
- return item.steps.every((val) => val.stop && (0, exports2.isAllStepsEnded)(val));
443
- };
444
- exports2.isAllStepsEnded = isAllStepsEnded;
445
- var readImageAsBase64 = async (filePath) => {
446
- try {
447
- const file = await (0, promises_1.readFile)(filePath, { encoding: "base64" });
448
- return file ? `data:image/png;base64,${file}` : void 0;
449
- } catch (e) {
450
- return void 0;
451
- }
452
- };
453
- exports2.readImageAsBase64 = readImageAsBase64;
454
- var asciiRegex = new RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))", "g");
455
- var stripAscii = (str) => {
456
- return str.replace(asciiRegex, "");
457
- };
458
- exports2.stripAscii = stripAscii;
459
- var allureReportFolder = (outputFolder) => {
460
- if (process.env.ALLURE_RESULTS_DIR) {
461
- return path_1.default.resolve(process.cwd(), process.env.ALLURE_RESULTS_DIR);
462
- }
463
- if (outputFolder) {
464
- return outputFolder;
465
- }
466
- return (0, exports2.defaultReportFolder)();
467
- };
468
- exports2.allureReportFolder = allureReportFolder;
469
- var defaultReportFolder = () => {
470
- return path_1.default.resolve(process.cwd(), "allure-results");
471
- };
472
- exports2.defaultReportFolder = defaultReportFolder;
473
- exports2.allureIdRegexp = /@?allure.id[:=](?<id>[^\s]+)/;
474
- exports2.allureIdRegexpGlobal = new RegExp(exports2.allureIdRegexp, "g");
475
- exports2.allureLabelRegexp = /@?allure.label.(?<name>[^\s]+?)[:=](?<value>[^\s]+)/;
476
- exports2.allureLabelRegexpGlobal = new RegExp(exports2.allureLabelRegexp, "g");
477
- var getStatusFromError = (error) => {
478
- switch (true) {
479
- case /assert/gi.test(error.constructor.name):
480
- case /assert/gi.test(error.name):
481
- case /assert/gi.test(error.message):
482
- return model_1.Status.FAILED;
483
- default:
484
- return model_1.Status.BROKEN;
485
- }
486
- };
487
- exports2.getStatusFromError = getStatusFromError;
488
- var getSuitesLabels2 = (suites) => {
489
- if (suites.length === 0) {
490
- return [];
491
- }
492
- const [parentSuite, suite, ...subSuites] = suites;
493
- const labels = [];
494
- if (parentSuite) {
495
- labels.push({
496
- name: model_1.LabelName.PARENT_SUITE,
497
- value: parentSuite
498
- });
499
- }
500
- if (suite) {
501
- labels.push({
502
- name: model_1.LabelName.SUITE,
503
- value: suite
504
- });
505
- }
506
- if (subSuites.length > 0) {
507
- labels.push({
508
- name: model_1.LabelName.SUB_SUITE,
509
- value: subSuites.join(" > ")
510
- });
511
- }
512
- return labels;
513
- };
514
- exports2.getSuitesLabels = getSuitesLabels2;
515
- var serialize = (val) => {
516
- if (typeof val === "object" && !(val instanceof Map || val instanceof Set)) {
517
- return JSON.stringify(val);
518
- }
519
- if (val === void 0) {
520
- return "undefined";
521
- }
522
- return val.toString();
523
- };
524
- exports2.serialize = serialize;
525
- var extractMetadataFromString2 = (title) => {
526
- const labels = [];
527
- title.split(" ").forEach((val) => {
528
- var _a, _b;
529
- const idValue = (_b = (_a = val.match(exports2.allureIdRegexp)) === null || _a === void 0 ? void 0 : _a.groups) === null || _b === void 0 ? void 0 : _b.id;
530
- if (idValue) {
531
- labels.push({ name: model_1.LabelName.ALLURE_ID, value: idValue });
532
- }
533
- const labelMatch = val.match(exports2.allureLabelRegexp);
534
- const { name, value } = (labelMatch === null || labelMatch === void 0 ? void 0 : labelMatch.groups) || {};
535
- if (name && value) {
536
- labels === null || labels === void 0 ? void 0 : labels.push({ name, value });
537
- }
538
- });
539
- const cleanTitle = title.replace(exports2.allureLabelRegexpGlobal, "").replace(exports2.allureIdRegexpGlobal, "").trim();
540
- return { labels, cleanTitle };
541
- };
542
- exports2.extractMetadataFromString = extractMetadataFromString2;
543
- }
544
- });
545
-
546
- // ../allure-js-commons/dist/src/ExecutableItemWrapper.js
547
- var require_ExecutableItemWrapper = __commonJS({
548
- "../allure-js-commons/dist/src/ExecutableItemWrapper.js"(exports2) {
549
- "use strict";
550
- Object.defineProperty(exports2, "__esModule", { value: true });
551
- exports2.AllureStep = exports2.ExecutableItemWrapper = void 0;
552
- var constructors_1 = require_constructors();
553
- var isPromise_1 = require_isPromise();
554
- var model_1 = require_model();
555
- var utils_1 = require_utils();
556
- var ExecutableItemWrapper = class {
557
- constructor(info) {
558
- this.info = info;
559
- }
560
- get wrappedItem() {
561
- return this.info;
562
- }
563
- set name(name) {
564
- this.info.name = name;
565
- }
566
- set description(description) {
567
- this.info.description = description;
568
- }
569
- set descriptionHtml(descriptionHtml) {
570
- this.info.descriptionHtml = descriptionHtml;
571
- }
572
- set status(status) {
573
- this.info.status = status;
574
- }
575
- get status() {
576
- return this.info.status;
577
- }
578
- set statusDetails(details) {
579
- this.info.statusDetails = details;
580
- }
581
- set detailsMessage(message) {
582
- this.info.statusDetails.message = message;
583
- }
584
- set detailsTrace(trace) {
585
- this.info.statusDetails.trace = trace;
586
- }
587
- set stage(stage) {
588
- this.info.stage = stage;
589
- }
590
- parameter(name, value, options) {
591
- this.info.parameters.push(Object.assign(Object.assign({}, options), { name, value: (0, utils_1.serialize)(value) }));
592
- }
593
- get isAnyStepFailed() {
594
- return (0, utils_1.isAnyStepFailed)(this.info);
595
- }
596
- get isAllStepsEnded() {
597
- return (0, utils_1.isAllStepsEnded)(this.info);
598
- }
599
- addParameter(name, value, options) {
600
- this.parameter(name, value, options);
601
- }
602
- addAttachment(name, options, fileName) {
603
- if (typeof options === "string") {
604
- options = { contentType: options };
605
- }
606
- this.info.attachments.push({ name, type: options.contentType, source: fileName });
607
- }
608
- startStep(name, start) {
609
- const result = (0, constructors_1.stepResult)();
610
- this.info.steps.push(result);
611
- const allureStep = new AllureStep2(result, start);
612
- allureStep.name = name;
613
- return allureStep;
614
- }
615
- wrap(fun) {
616
- return (...args) => {
617
- this.stage = model_1.Stage.RUNNING;
618
- let result;
619
- try {
620
- result = fun(args);
621
- } catch (error) {
622
- this.stage = model_1.Stage.INTERRUPTED;
623
- this.status = model_1.Status.BROKEN;
624
- if (error) {
625
- this.detailsMessage = error.message || "";
626
- this.detailsTrace = error.stack || "";
627
- }
628
- throw error;
629
- }
630
- if ((0, isPromise_1.isPromise)(result)) {
631
- const promise = result;
632
- return promise.then((res) => {
633
- this.status = model_1.Status.PASSED;
634
- this.stage = model_1.Stage.FINISHED;
635
- return res;
636
- }).catch((error) => {
637
- this.stage = model_1.Stage.INTERRUPTED;
638
- this.status = model_1.Status.BROKEN;
639
- if (error) {
640
- this.detailsMessage = error.message || "";
641
- this.detailsTrace = error.stack || "";
642
- }
643
- throw error;
644
- });
645
- } else {
646
- this.status = model_1.Status.PASSED;
647
- this.stage = model_1.Stage.FINISHED;
648
- return result;
649
- }
650
- };
651
- }
652
- addStep(step) {
653
- this.info.steps.push(step);
654
- }
655
- };
656
- exports2.ExecutableItemWrapper = ExecutableItemWrapper;
657
- var AllureStep2 = class extends ExecutableItemWrapper {
658
- constructor(stepResult, start = Date.now()) {
659
- super(stepResult);
660
- this.stepResult = stepResult;
661
- this.stepResult.start = start;
662
- }
663
- endStep(stop = Date.now()) {
664
- this.stepResult.stop = stop;
665
- }
666
- };
667
- exports2.AllureStep = AllureStep2;
668
- }
669
- });
670
-
671
- // ../allure-js-commons/dist/src/AllureTest.js
672
- var require_AllureTest = __commonJS({
673
- "../allure-js-commons/dist/src/AllureTest.js"(exports2) {
674
- "use strict";
675
- Object.defineProperty(exports2, "__esModule", { value: true });
676
- exports2.AllureTest = void 0;
677
- var AllureCommandStep_1 = require_AllureCommandStep();
678
- var ExecutableItemWrapper_1 = require_ExecutableItemWrapper();
679
- var constructors_1 = require_constructors();
680
- var model_1 = require_model();
681
- var utils_1 = require_utils();
682
- var AllureTest2 = class extends ExecutableItemWrapper_1.ExecutableItemWrapper {
683
- constructor(runtime, start = Date.now()) {
684
- super((0, constructors_1.testResult)());
685
- this.runtime = runtime;
686
- this.historyIdSetManually = false;
687
- const globalLabels = (0, utils_1.getLabelsFromEnv)();
688
- this.testResult = this.wrappedItem;
689
- this.testResult.start = start;
690
- globalLabels.forEach((label) => this.addLabel(label.name, label.value));
691
- }
692
- endTest(stop = Date.now()) {
693
- this.testResult.stop = stop;
694
- this.runtime.writeResult(this.testResult);
695
- }
696
- get uuid() {
697
- return this.testResult.uuid;
698
- }
699
- set historyId(id) {
700
- this.historyIdSetManually = true;
701
- this.testResult.historyId = id;
702
- }
703
- set fullName(fullName) {
704
- this.testResult.fullName = fullName;
705
- }
706
- set testCaseId(testCaseId) {
707
- this.testResult.testCaseId = testCaseId;
708
- }
709
- addLabel(name, value) {
710
- this.testResult.labels.push({ name, value });
711
- }
712
- addLink(url, name, type) {
713
- this.testResult.links.push({ name, url, type });
714
- }
715
- addIssueLink(url, name) {
716
- this.addLink(url, name, model_1.LinkType.ISSUE);
717
- }
718
- addTmsLink(url, name) {
719
- this.addLink(url, name, model_1.LinkType.TMS);
720
- }
721
- calculateHistoryId() {
722
- if (this.historyIdSetManually) {
723
- return;
724
- }
725
- const tcId = this.testResult.testCaseId ? this.testResult.testCaseId : this.testResult.fullName ? (0, utils_1.md5)(this.testResult.fullName) : null;
726
- if (!tcId) {
727
- return;
728
- }
729
- const paramsString = this.testResult.parameters.filter((p) => !(p === null || p === void 0 ? void 0 : p.excluded)).sort((a, b) => {
730
- var _a, _b;
731
- return ((_a = a.name) === null || _a === void 0 ? void 0 : _a.localeCompare(b === null || b === void 0 ? void 0 : b.name)) || ((_b = a.value) === null || _b === void 0 ? void 0 : _b.localeCompare(b === null || b === void 0 ? void 0 : b.value));
732
- }).map((p) => {
733
- var _a, _b;
734
- return `${(_a = p.name) !== null && _a !== void 0 ? _a : "null"}:${(_b = p.value) !== null && _b !== void 0 ? _b : "null"}`;
735
- }).join(",");
736
- const paramsHash = (0, utils_1.md5)(paramsString);
737
- this.historyId = `${tcId}:${paramsHash}`;
738
- }
739
- applyMetadata(metadata, stepApplyFn) {
740
- const { attachments = [], labels = [], links = [], parameter = [], steps = [], description, descriptionHtml, displayName, historyId, testCaseId } = metadata;
741
- labels.forEach((label) => {
742
- this.addLabel(label.name, label.value);
743
- });
744
- links.forEach((link) => {
745
- this.addLink(link.url, link.name, link.type);
746
- });
747
- parameter.forEach((param) => {
748
- this.parameter(param.name, param.value, {
749
- excluded: param.excluded,
750
- mode: param.mode
751
- });
752
- });
753
- attachments.forEach((attachment) => {
754
- const attachmentFilename = this.runtime.writeAttachment(attachment.content, attachment.type, attachment.encoding);
755
- this.addAttachment(attachment.name, {
756
- contentType: attachment.type
757
- }, attachmentFilename);
758
- });
759
- if (description) {
760
- this.description = description;
761
- }
762
- if (descriptionHtml) {
763
- this.descriptionHtml = descriptionHtml;
764
- }
765
- if (displayName) {
766
- this.name = displayName;
767
- }
768
- if (testCaseId) {
769
- this.testCaseId = testCaseId;
770
- }
771
- if (historyId) {
772
- this.historyId = historyId;
773
- }
774
- steps.forEach((stepMetadata) => {
775
- const step = AllureCommandStep_1.AllureCommandStepExecutable.toExecutableItem(this.runtime, stepMetadata);
776
- if (stepApplyFn) {
777
- stepApplyFn(step);
778
- return;
779
- }
780
- this.addStep(step);
781
- });
782
- }
783
- };
784
- exports2.AllureTest = AllureTest2;
785
- }
786
- });
787
-
788
- // ../allure-js-commons/dist/src/AllureGroup.js
789
- var require_AllureGroup = __commonJS({
790
- "../allure-js-commons/dist/src/AllureGroup.js"(exports2) {
791
- "use strict";
792
- Object.defineProperty(exports2, "__esModule", { value: true });
793
- exports2.AllureGroup = void 0;
794
- var AllureTest_1 = require_AllureTest();
795
- var ExecutableItemWrapper_1 = require_ExecutableItemWrapper();
796
- var constructors_1 = require_constructors();
797
- var AllureGroup = class _AllureGroup {
798
- constructor(runtime) {
799
- this.runtime = runtime;
800
- this.testResultContainer = (0, constructors_1.testResultContainer)();
801
- }
802
- startGroup(name) {
803
- const group = new _AllureGroup(this.runtime);
804
- this.testResultContainer.children.push(group.uuid);
805
- group.name = name || "Unnamed";
806
- return group;
807
- }
808
- startTest(name, start) {
809
- const test = new AllureTest_1.AllureTest(this.runtime, start);
810
- this.testResultContainer.children.push(test.uuid);
811
- test.name = name || "Unnamed";
812
- return test;
813
- }
814
- endGroup() {
815
- this.runtime.writeGroup(this.testResultContainer);
816
- }
817
- get uuid() {
818
- return this.testResultContainer.uuid;
819
- }
820
- get name() {
821
- return this.testResultContainer.name || "";
822
- }
823
- set name(name) {
824
- this.testResultContainer.name = name;
825
- }
826
- addBefore() {
827
- const result = (0, constructors_1.fixtureResult)();
828
- this.testResultContainer.befores.push(result);
829
- return new ExecutableItemWrapper_1.ExecutableItemWrapper(result);
830
- }
831
- addAfter() {
832
- const result = (0, constructors_1.fixtureResult)();
833
- this.testResultContainer.afters.push(result);
834
- return new ExecutableItemWrapper_1.ExecutableItemWrapper(result);
835
- }
836
- };
837
- exports2.AllureGroup = AllureGroup;
838
- }
839
- });
840
-
841
- // ../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/stringifier.js
842
- var require_stringifier = __commonJS({
843
- "../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/stringifier.js"(exports2, module2) {
844
- "use strict";
845
- var Stringifier = module2.exports = function() {
846
- this._header = null;
847
- this._lines = [];
848
- };
849
- Stringifier.prototype.header = function(comment) {
850
- this._header = comment;
851
- return this;
852
- };
853
- Stringifier.prototype.property = function(p) {
854
- p.property = true;
855
- this._lines.push(p);
856
- return this;
857
- };
858
- Stringifier.prototype.section = function(p) {
859
- if (typeof p === "string") {
860
- p = { name: p };
861
- }
862
- p.section = true;
863
- this._lines.push(p);
864
- return this;
865
- };
866
- }
867
- });
868
-
869
- // ../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/parse.js
870
- var require_parse = __commonJS({
871
- "../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/parse.js"(exports2, module2) {
872
- "use strict";
873
- var hex = function(c) {
874
- switch (c) {
875
- case "0":
876
- return 0;
877
- case "1":
878
- return 1;
879
- case "2":
880
- return 2;
881
- case "3":
882
- return 3;
883
- case "4":
884
- return 4;
885
- case "5":
886
- return 5;
887
- case "6":
888
- return 6;
889
- case "7":
890
- return 7;
891
- case "8":
892
- return 8;
893
- case "9":
894
- return 9;
895
- case "a":
896
- case "A":
897
- return 10;
898
- case "b":
899
- case "B":
900
- return 11;
901
- case "c":
902
- case "C":
903
- return 12;
904
- case "d":
905
- case "D":
906
- return 13;
907
- case "e":
908
- case "E":
909
- return 14;
910
- case "f":
911
- case "F":
912
- return 15;
913
- }
914
- };
915
- module2.exports = function(data, options, handlers, control) {
916
- var c;
917
- var code;
918
- var escape;
919
- var skipSpace = true;
920
- var isCommentLine;
921
- var isSectionLine;
922
- var newLine = true;
923
- var multiLine;
924
- var isKey = true;
925
- var key = "";
926
- var value = "";
927
- var section;
928
- var unicode;
929
- var unicodeRemaining;
930
- var escapingUnicode;
931
- var keySpace;
932
- var sep;
933
- var ignoreLine;
934
- var line = function() {
935
- if (key || value || sep) {
936
- handlers.line(key, value);
937
- key = "";
938
- value = "";
939
- sep = false;
940
- }
941
- };
942
- var escapeString = function(key2, c2, code2) {
943
- if (escapingUnicode && unicodeRemaining) {
944
- unicode = (unicode << 4) + hex(c2);
945
- if (--unicodeRemaining)
946
- return key2;
947
- escape = false;
948
- escapingUnicode = false;
949
- return key2 + String.fromCharCode(unicode);
950
- }
951
- if (code2 === 117) {
952
- unicode = 0;
953
- escapingUnicode = true;
954
- unicodeRemaining = 4;
955
- return key2;
956
- }
957
- escape = false;
958
- if (code2 === 116)
959
- return key2 + " ";
960
- else if (code2 === 114)
961
- return key2 + "\r";
962
- else if (code2 === 110)
963
- return key2 + "\n";
964
- else if (code2 === 102)
965
- return key2 + "\f";
966
- return key2 + c2;
967
- };
968
- var isComment;
969
- var isSeparator;
970
- if (options._strict) {
971
- isComment = function(c2, code2, options2) {
972
- return options2._comments[c2];
973
- };
974
- isSeparator = function(c2, code2, options2) {
975
- return options2._separators[c2];
976
- };
977
- } else {
978
- isComment = function(c2, code2, options2) {
979
- return code2 === 35 || code2 === 33 || options2._comments[c2];
980
- };
981
- isSeparator = function(c2, code2, options2) {
982
- return code2 === 61 || code2 === 58 || options2._separators[c2];
983
- };
984
- }
985
- for (var i = ~~control.resume; i < data.length; i++) {
986
- if (control.abort)
987
- return;
988
- if (control.pause) {
989
- control.resume = i;
990
- return;
991
- }
992
- c = data[i];
993
- code = data.charCodeAt(i);
994
- if (code === 13)
995
- continue;
996
- if (isCommentLine) {
997
- if (code === 10) {
998
- isCommentLine = false;
999
- newLine = true;
1000
- skipSpace = true;
1001
- }
1002
- continue;
1003
- }
1004
- if (isSectionLine && code === 93) {
1005
- handlers.section(section);
1006
- ignoreLine = true;
1007
- continue;
1008
- }
1009
- if (skipSpace) {
1010
- if (code === 32 || code === 9 || code === 12) {
1011
- continue;
1012
- }
1013
- if (!multiLine && code === 10) {
1014
- isKey = true;
1015
- keySpace = false;
1016
- newLine = true;
1017
- line();
1018
- continue;
1019
- }
1020
- skipSpace = false;
1021
- multiLine = false;
1022
- }
1023
- if (newLine) {
1024
- newLine = false;
1025
- if (isComment(c, code, options)) {
1026
- isCommentLine = true;
1027
- continue;
1028
- }
1029
- if (options.sections && code === 91) {
1030
- section = "";
1031
- isSectionLine = true;
1032
- control.skipSection = false;
1033
- continue;
1034
- }
1035
- }
1036
- if (code !== 10) {
1037
- if (control.skipSection || ignoreLine)
1038
- continue;
1039
- if (!isSectionLine) {
1040
- if (!escape && isKey && isSeparator(c, code, options)) {
1041
- sep = true;
1042
- isKey = false;
1043
- keySpace = false;
1044
- skipSpace = true;
1045
- continue;
1046
- }
1047
- }
1048
- if (code === 92) {
1049
- if (escape) {
1050
- if (escapingUnicode)
1051
- continue;
1052
- if (keySpace) {
1053
- keySpace = false;
1054
- isKey = false;
1055
- }
1056
- if (isSectionLine)
1057
- section += "\\";
1058
- else if (isKey)
1059
- key += "\\";
1060
- else
1061
- value += "\\";
1062
- }
1063
- escape = !escape;
1064
- } else {
1065
- if (keySpace) {
1066
- keySpace = false;
1067
- isKey = false;
1068
- }
1069
- if (isSectionLine) {
1070
- if (escape)
1071
- section = escapeString(section, c, code);
1072
- else
1073
- section += c;
1074
- } else if (isKey) {
1075
- if (escape) {
1076
- key = escapeString(key, c, code);
1077
- } else {
1078
- if (code === 32 || code === 9 || code === 12) {
1079
- keySpace = true;
1080
- skipSpace = true;
1081
- continue;
1082
- }
1083
- key += c;
1084
- }
1085
- } else {
1086
- if (escape)
1087
- value = escapeString(value, c, code);
1088
- else
1089
- value += c;
1090
- }
1091
- }
1092
- } else {
1093
- if (escape) {
1094
- if (!escapingUnicode) {
1095
- escape = false;
1096
- }
1097
- skipSpace = true;
1098
- multiLine = true;
1099
- } else {
1100
- if (isSectionLine) {
1101
- isSectionLine = false;
1102
- if (!ignoreLine) {
1103
- control.error = new Error('The section line "' + section + '" must end with "]"');
1104
- return;
1105
- }
1106
- ignoreLine = false;
1107
- }
1108
- newLine = true;
1109
- skipSpace = true;
1110
- isKey = true;
1111
- line();
1112
- }
1113
- }
1114
- }
1115
- control.parsed = true;
1116
- if (isSectionLine && !ignoreLine) {
1117
- control.error = new Error('The section line "' + section + '" must endwith "]"');
1118
- return;
1119
- }
1120
- line();
1121
- };
1122
- }
1123
- });
1124
-
1125
- // ../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/read.js
1126
- var require_read = __commonJS({
1127
- "../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/read.js"(exports2, module2) {
1128
- "use strict";
1129
- var fs = require("fs");
1130
- var path = require("path");
1131
- var parse = require_parse();
1132
- var INCLUDE_KEY = "include";
1133
- var INDEX_FILE = "index.properties";
1134
- var cast = function(value) {
1135
- if (value === null || value === "null")
1136
- return null;
1137
- if (value === "undefined")
1138
- return void 0;
1139
- if (value === "true")
1140
- return true;
1141
- if (value === "false")
1142
- return false;
1143
- var v = Number(value);
1144
- return isNaN(v) ? value : v;
1145
- };
1146
- var expand = function(o, str, options, cb) {
1147
- if (!options.variables || !str)
1148
- return cb(null, str);
1149
- var stack = [];
1150
- var c;
1151
- var cp;
1152
- var key = "";
1153
- var section = null;
1154
- var v;
1155
- var holder;
1156
- var t;
1157
- var n;
1158
- for (var i = 0; i < str.length; i++) {
1159
- c = str[i];
1160
- if (cp === "$" && c === "{") {
1161
- key = key.substring(0, key.length - 1);
1162
- stack.push({
1163
- key,
1164
- section
1165
- });
1166
- key = "";
1167
- section = null;
1168
- continue;
1169
- } else if (stack.length) {
1170
- if (options.sections && c === "|") {
1171
- section = key;
1172
- key = "";
1173
- continue;
1174
- } else if (c === "}") {
1175
- holder = section !== null ? searchValue(o, section, true) : o;
1176
- if (!holder) {
1177
- return cb(new Error('The section "' + section + '" does not exist'));
1178
- }
1179
- v = options.namespaces ? searchValue(holder, key) : holder[key];
1180
- if (v === void 0) {
1181
- v = options.namespaces ? searchValue(options._vars, key) : options._vars[key];
1182
- if (v === void 0) {
1183
- return cb(new Error('The property "' + key + '" does not exist'));
1184
- }
1185
- }
1186
- t = stack.pop();
1187
- section = t.section;
1188
- key = t.key + (v === null ? "" : v);
1189
- continue;
1190
- }
1191
- }
1192
- cp = c;
1193
- key += c;
1194
- }
1195
- if (stack.length !== 0) {
1196
- return cb(new Error("Malformed variable: " + str));
1197
- }
1198
- cb(null, key);
1199
- };
1200
- var searchValue = function(o, chain, section) {
1201
- var n = chain.split(".");
1202
- var str;
1203
- for (var i = 0; i < n.length - 1; i++) {
1204
- str = n[i];
1205
- if (o[str] === void 0)
1206
- return;
1207
- o = o[str];
1208
- }
1209
- var v = o[n[n.length - 1]];
1210
- if (section) {
1211
- if (typeof v !== "object")
1212
- return;
1213
- return v;
1214
- } else {
1215
- if (typeof v === "object")
1216
- return;
1217
- return v;
1218
- }
1219
- };
1220
- var namespaceKey = function(o, key, value) {
1221
- var n = key.split(".");
1222
- var str;
1223
- for (var i = 0; i < n.length - 1; i++) {
1224
- str = n[i];
1225
- if (o[str] === void 0) {
1226
- o[str] = {};
1227
- } else if (typeof o[str] !== "object") {
1228
- throw new Error("Invalid namespace chain in the property name '" + key + "' ('" + str + "' has already a value)");
1229
- }
1230
- o = o[str];
1231
- }
1232
- o[n[n.length - 1]] = value;
1233
- };
1234
- var namespaceSection = function(o, section) {
1235
- var n = section.split(".");
1236
- var str;
1237
- for (var i = 0; i < n.length; i++) {
1238
- str = n[i];
1239
- if (o[str] === void 0) {
1240
- o[str] = {};
1241
- } else if (typeof o[str] !== "object") {
1242
- throw new Error("Invalid namespace chain in the section name '" + section + "' ('" + str + "' has already a value)");
1243
- }
1244
- o = o[str];
1245
- }
1246
- return o;
1247
- };
1248
- var merge = function(o1, o2) {
1249
- for (var p in o2) {
1250
- try {
1251
- if (o1[p].constructor === Object) {
1252
- o1[p] = merge(o1[p], o2[p]);
1253
- } else {
1254
- o1[p] = o2[p];
1255
- }
1256
- } catch (e) {
1257
- o1[p] = o2[p];
1258
- }
1259
- }
1260
- return o1;
1261
- };
1262
- var build = function(data, options, dirname, cb) {
1263
- var o = {};
1264
- if (options.namespaces) {
1265
- var n = {};
1266
- }
1267
- var control = {
1268
- abort: false,
1269
- skipSection: false
1270
- };
1271
- if (options.include) {
1272
- var remainingIncluded = 0;
1273
- var include = function(value) {
1274
- if (currentSection !== null) {
1275
- return abort(new Error("Cannot include files from inside a section: " + currentSection));
1276
- }
1277
- var p = path.resolve(dirname, value);
1278
- if (options._included[p])
1279
- return;
1280
- options._included[p] = true;
1281
- remainingIncluded++;
1282
- control.pause = true;
1283
- read(p, options, function(error2, included) {
1284
- if (error2)
1285
- return abort(error2);
1286
- remainingIncluded--;
1287
- merge(options.namespaces ? n : o, included);
1288
- control.pause = false;
1289
- if (!control.parsed) {
1290
- parse(data, options, handlers, control);
1291
- if (control.error)
1292
- return abort(control.error);
1293
- }
1294
- if (!remainingIncluded)
1295
- cb(null, options.namespaces ? n : o);
1296
- });
1297
- };
1298
- }
1299
- if (!data) {
1300
- if (cb)
1301
- return cb(null, o);
1302
- return o;
1303
- }
1304
- var currentSection = null;
1305
- var currentSectionStr = null;
1306
- var abort = function(error2) {
1307
- control.abort = true;
1308
- if (cb)
1309
- return cb(error2);
1310
- throw error2;
1311
- };
1312
- var handlers = {};
1313
- var reviver = {
1314
- assert: function() {
1315
- return this.isProperty ? reviverLine.value : true;
1316
- }
1317
- };
1318
- var reviverLine = {};
1319
- var line;
1320
- var error;
1321
- if (options.reviver) {
1322
- if (options.sections) {
1323
- line = function(key, value) {
1324
- if (options.include && key === INCLUDE_KEY)
1325
- return include(value);
1326
- reviverLine.value = value;
1327
- reviver.isProperty = true;
1328
- reviver.isSection = false;
1329
- value = options.reviver.call(reviver, key, value, currentSectionStr);
1330
- if (value !== void 0) {
1331
- if (options.namespaces) {
1332
- try {
1333
- namespaceKey(
1334
- currentSection === null ? n : currentSection,
1335
- key,
1336
- value
1337
- );
1338
- } catch (error2) {
1339
- abort(error2);
1340
- }
1341
- } else {
1342
- if (currentSection === null)
1343
- o[key] = value;
1344
- else
1345
- currentSection[key] = value;
1346
- }
1347
- }
1348
- };
1349
- } else {
1350
- line = function(key, value) {
1351
- if (options.include && key === INCLUDE_KEY)
1352
- return include(value);
1353
- reviverLine.value = value;
1354
- reviver.isProperty = true;
1355
- reviver.isSection = false;
1356
- value = options.reviver.call(reviver, key, value);
1357
- if (value !== void 0) {
1358
- if (options.namespaces) {
1359
- try {
1360
- namespaceKey(n, key, value);
1361
- } catch (error2) {
1362
- abort(error2);
1363
- }
1364
- } else {
1365
- o[key] = value;
1366
- }
1367
- }
1368
- };
1369
- }
1370
- } else {
1371
- if (options.sections) {
1372
- line = function(key, value) {
1373
- if (options.include && key === INCLUDE_KEY)
1374
- return include(value);
1375
- if (options.namespaces) {
1376
- try {
1377
- namespaceKey(
1378
- currentSection === null ? n : currentSection,
1379
- key,
1380
- value
1381
- );
1382
- } catch (error2) {
1383
- abort(error2);
1384
- }
1385
- } else {
1386
- if (currentSection === null)
1387
- o[key] = value;
1388
- else
1389
- currentSection[key] = value;
1390
- }
1391
- };
1392
- } else {
1393
- line = function(key, value) {
1394
- if (options.include && key === INCLUDE_KEY)
1395
- return include(value);
1396
- if (options.namespaces) {
1397
- try {
1398
- namespaceKey(n, key, value);
1399
- } catch (error2) {
1400
- abort(error2);
1401
- }
1402
- } else {
1403
- o[key] = value;
1404
- }
1405
- };
1406
- }
1407
- }
1408
- var section;
1409
- if (options.sections) {
1410
- if (options.reviver) {
1411
- section = function(section2) {
1412
- currentSectionStr = section2;
1413
- reviverLine.section = section2;
1414
- reviver.isProperty = false;
1415
- reviver.isSection = true;
1416
- var add = options.reviver.call(reviver, null, null, section2);
1417
- if (add) {
1418
- if (options.namespaces) {
1419
- try {
1420
- currentSection = namespaceSection(n, section2);
1421
- } catch (error2) {
1422
- abort(error2);
1423
- }
1424
- } else {
1425
- currentSection = o[section2] = {};
1426
- }
1427
- } else {
1428
- control.skipSection = true;
1429
- }
1430
- };
1431
- } else {
1432
- section = function(section2) {
1433
- currentSectionStr = section2;
1434
- if (options.namespaces) {
1435
- try {
1436
- currentSection = namespaceSection(n, section2);
1437
- } catch (error2) {
1438
- abort(error2);
1439
- }
1440
- } else {
1441
- currentSection = o[section2] = {};
1442
- }
1443
- };
1444
- }
1445
- }
1446
- if (options.variables) {
1447
- handlers.line = function(key, value) {
1448
- expand(options.namespaces ? n : o, key, options, function(error2, key2) {
1449
- if (error2)
1450
- return abort(error2);
1451
- expand(
1452
- options.namespaces ? n : o,
1453
- value,
1454
- options,
1455
- function(error3, value2) {
1456
- if (error3)
1457
- return abort(error3);
1458
- line(key2, cast(value2 || null));
1459
- }
1460
- );
1461
- });
1462
- };
1463
- if (options.sections) {
1464
- handlers.section = function(s) {
1465
- expand(options.namespaces ? n : o, s, options, function(error2, s2) {
1466
- if (error2)
1467
- return abort(error2);
1468
- section(s2);
1469
- });
1470
- };
1471
- }
1472
- } else {
1473
- handlers.line = function(key, value) {
1474
- line(key, cast(value || null));
1475
- };
1476
- if (options.sections) {
1477
- handlers.section = section;
1478
- }
1479
- }
1480
- parse(data, options, handlers, control);
1481
- if (control.error)
1482
- return abort(control.error);
1483
- if (control.abort || control.pause)
1484
- return;
1485
- if (cb)
1486
- return cb(null, options.namespaces ? n : o);
1487
- return options.namespaces ? n : o;
1488
- };
1489
- var read = function(f, options, cb) {
1490
- fs.stat(f, function(error, stats) {
1491
- if (error)
1492
- return cb(error);
1493
- var dirname;
1494
- if (stats.isDirectory()) {
1495
- dirname = f;
1496
- f = path.join(f, INDEX_FILE);
1497
- } else {
1498
- dirname = path.dirname(f);
1499
- }
1500
- fs.readFile(f, { encoding: "utf8" }, function(error2, data) {
1501
- if (error2)
1502
- return cb(error2);
1503
- build(data, options, dirname, cb);
1504
- });
1505
- });
1506
- };
1507
- module2.exports = function(data, options, cb) {
1508
- if (typeof options === "function") {
1509
- cb = options;
1510
- options = {};
1511
- }
1512
- options = options || {};
1513
- var code;
1514
- if (options.include) {
1515
- if (!cb)
1516
- throw new Error("A callback must be passed if the 'include' option is enabled");
1517
- options._included = {};
1518
- }
1519
- options = options || {};
1520
- options._strict = options.strict && (options.comments || options.separators);
1521
- options._vars = options.vars || {};
1522
- var comments = options.comments || [];
1523
- if (!Array.isArray(comments))
1524
- comments = [comments];
1525
- var c = {};
1526
- comments.forEach(function(comment) {
1527
- code = comment.charCodeAt(0);
1528
- if (comment.length > 1 || code < 33 || code > 126) {
1529
- throw new Error("The comment token must be a single printable ASCII character");
1530
- }
1531
- c[comment] = true;
1532
- });
1533
- options._comments = c;
1534
- var separators = options.separators || [];
1535
- if (!Array.isArray(separators))
1536
- separators = [separators];
1537
- var s = {};
1538
- separators.forEach(function(separator) {
1539
- code = separator.charCodeAt(0);
1540
- if (separator.length > 1 || code < 33 || code > 126) {
1541
- throw new Error("The separator token must be a single printable ASCII character");
1542
- }
1543
- s[separator] = true;
1544
- });
1545
- options._separators = s;
1546
- if (options.path) {
1547
- if (!cb)
1548
- throw new Error("A callback must be passed if the 'path' option is enabled");
1549
- if (options.include) {
1550
- read(data, options, cb);
1551
- } else {
1552
- fs.readFile(data, { encoding: "utf8" }, function(error, data2) {
1553
- if (error)
1554
- return cb(error);
1555
- build(data2, options, ".", cb);
1556
- });
1557
- }
1558
- } else {
1559
- return build(data, options, ".", cb);
1560
- }
1561
- };
1562
- }
1563
- });
1564
-
1565
- // ../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/escape.js
1566
- var require_escape = __commonJS({
1567
- "../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/escape.js"(exports2, module2) {
1568
- "use strict";
1569
- var unicode = function(code) {
1570
- var unicode2 = code.toString(16);
1571
- while (unicode2.length !== 4) {
1572
- unicode2 = "0" + unicode2;
1573
- }
1574
- return "\\u" + unicode2;
1575
- };
1576
- module2.exports = function(c, code, meta, options) {
1577
- if (meta.key && (code === 61 || code === 58 || code === meta.separator)) {
1578
- return "\\" + c;
1579
- }
1580
- if (code > 31 && code < 127) {
1581
- if (code === 32 && meta.whitespace) {
1582
- return "\\ ";
1583
- }
1584
- if (code === 92)
1585
- return "\\\\";
1586
- return c;
1587
- }
1588
- if (code === 9)
1589
- return meta.comment ? c : "\\t";
1590
- if (code === 10)
1591
- return "\\n";
1592
- if (code === 12)
1593
- return meta.comment ? c : "\\f";
1594
- if (code === 13)
1595
- return meta.comment ? c : "\\r";
1596
- if (code < 160)
1597
- return unicode(code);
1598
- if (code < 256)
1599
- return c;
1600
- return options.unicode ? unicode(code) : c;
1601
- };
1602
- }
1603
- });
1604
-
1605
- // ../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/stringify.js
1606
- var require_stringify = __commonJS({
1607
- "../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/stringify.js"(exports2, module2) {
1608
- "use strict";
1609
- var escape = require_escape();
1610
- var Stringifier = require_stringifier();
1611
- var EOL = process.platform === "win32" ? "\r\n" : "\n";
1612
- var stringifyComment = function(comment, meta, options) {
1613
- var c;
1614
- var code;
1615
- var str = options._comment;
1616
- for (var i = 0; i < comment.length; i++) {
1617
- c = comment[i];
1618
- code = comment.charCodeAt(i);
1619
- if (code === 13)
1620
- continue;
1621
- if (code === 10) {
1622
- str += EOL + options._comment;
1623
- } else {
1624
- str += escape(c, code, meta, options);
1625
- }
1626
- }
1627
- return str;
1628
- };
1629
- var stringifyKey = function(s, meta, options) {
1630
- var c;
1631
- var code;
1632
- var str = "";
1633
- for (var i = 0; i < s.length; i++) {
1634
- c = s[i];
1635
- code = s.charCodeAt(i);
1636
- str += escape(c, code, meta, options);
1637
- }
1638
- return str;
1639
- };
1640
- var stringifyValue = function(s, meta, options) {
1641
- var c;
1642
- var code;
1643
- var str = "";
1644
- for (var i = 0; i < s.length; i++) {
1645
- c = s[i];
1646
- code = s.charCodeAt(i);
1647
- if (code !== 32 && code !== 9 && code !== 12) {
1648
- meta.whitespace = false;
1649
- }
1650
- str += escape(c, code, meta, options);
1651
- }
1652
- return str;
1653
- };
1654
- var stringifyObject = function(obj, options) {
1655
- var str = "";
1656
- var meta = {
1657
- separator: options._separator.charCodeAt(0)
1658
- };
1659
- var value;
1660
- var first = true;
1661
- if (options.replacer) {
1662
- var o = {
1663
- assert: function() {
1664
- return replace.property ? replace.value : true;
1665
- },
1666
- isProperty: true,
1667
- isSection: false
1668
- };
1669
- }
1670
- for (var p in obj) {
1671
- value = obj[p];
1672
- if (options.replacer) {
1673
- value = options.replacer.call(o, p, value, null);
1674
- if (value === void 0)
1675
- continue;
1676
- }
1677
- if (!first)
1678
- str += EOL;
1679
- meta.whitespace = true;
1680
- meta.key = true;
1681
- str += stringifyKey(p, meta, options);
1682
- meta.key = false;
1683
- str += options._separator;
1684
- if (value !== null && value !== void 0) {
1685
- str += stringifyValue(value + "", meta, options);
1686
- }
1687
- meta.whitespace = false;
1688
- first = false;
1689
- }
1690
- return str;
1691
- };
1692
- var stringifyStringifier = function(stringifier, options) {
1693
- var str = "";
1694
- var meta = {
1695
- separator: options._separator.charCodeAt(0)
1696
- };
1697
- var first = true;
1698
- var currentSection = null;
1699
- var skipSection;
1700
- var value;
1701
- var replace2;
1702
- if (options.replacer) {
1703
- var o = {
1704
- assert: function() {
1705
- return replace2.property ? replace2.value : true;
1706
- }
1707
- };
1708
- }
1709
- if (stringifier._header) {
1710
- meta.comment = true;
1711
- str += stringifyComment(stringifier._header, meta, options) + EOL + EOL;
1712
- meta.comment = false;
1713
- }
1714
- stringifier._lines.forEach(function(line) {
1715
- replace2 = line;
1716
- if (options.replacer) {
1717
- if (line.property) {
1718
- if (skipSection)
1719
- return;
1720
- o.isProperty = true;
1721
- o.isSection = false;
1722
- value = options.replacer.call(o, line.key, line.value, currentSection);
1723
- if (value === void 0)
1724
- return;
1725
- line.value = value;
1726
- } else {
1727
- skipSection = false;
1728
- o.isProperty = false;
1729
- o.isSection = true;
1730
- if (options.replacer.call(o, null, null, line.name)) {
1731
- currentSection = line.name;
1732
- } else {
1733
- skipSection = true;
1734
- return;
1735
- }
1736
- }
1737
- }
1738
- if (!first)
1739
- str += line.property ? EOL : EOL + EOL;
1740
- if (line.comment) {
1741
- meta.comment = true;
1742
- str += stringifyComment(line.comment, meta, options) + EOL;
1743
- meta.comment = false;
1744
- }
1745
- if (line.property) {
1746
- meta.whitespace = true;
1747
- if (line.key !== null && line.key !== void 0) {
1748
- meta.key = true;
1749
- str += stringifyKey(line.key + "", meta, options);
1750
- meta.key = false;
1751
- }
1752
- str += options._separator;
1753
- if (line.value !== null && line.value !== void 0) {
1754
- str += stringifyValue(line.value + "", meta, options);
1755
- }
1756
- meta.whitespace = false;
1757
- } else {
1758
- if (line.name) {
1759
- str += "[" + stringifyKey(line.name + "", meta, options) + "]";
1760
- } else {
1761
- str += "[]";
1762
- }
1763
- }
1764
- first = false;
1765
- });
1766
- return str;
1767
- };
1768
- module2.exports = function(stringifier, options) {
1769
- if (!(stringifier instanceof Stringifier)) {
1770
- return stringifyObject(stringifier, options);
1771
- } else {
1772
- return stringifyStringifier(stringifier, options);
1773
- }
1774
- };
1775
- }
1776
- });
1777
-
1778
- // ../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/write.js
1779
- var require_write = __commonJS({
1780
- "../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/write.js"(exports2, module2) {
1781
- "use strict";
1782
- var fs = require("fs");
1783
- var stringify = require_stringify();
1784
- module2.exports = function(stringifier, options, cb) {
1785
- if (typeof options === "function") {
1786
- cb = options;
1787
- options = {};
1788
- }
1789
- options = options || {};
1790
- var code;
1791
- if (options.comment) {
1792
- code = options.comment.charCodeAt(0);
1793
- if (options.comment.length > 1 || code < 33 || code > 126) {
1794
- throw new Error("The comment token must be a single printable ASCII character");
1795
- }
1796
- options._comment = options.comment;
1797
- } else {
1798
- options._comment = "#";
1799
- }
1800
- options._comment += " ";
1801
- if (options.separator) {
1802
- code = options.separator.charCodeAt(0);
1803
- if (options.separator.length > 1 || code < 33 || code > 126) {
1804
- throw new Error("The separator token must be a single printable ASCII character");
1805
- }
1806
- options._separator = options.separator;
1807
- } else {
1808
- options._separator = "=";
1809
- }
1810
- options._separator = " " + options._separator + " ";
1811
- var data = stringify(stringifier, options);
1812
- if (options.path) {
1813
- if (!cb)
1814
- throw new TypeError("A callback must be passed if the data is stored into a file");
1815
- fs.writeFile(options.path, data, function(error) {
1816
- if (error)
1817
- return cb(error);
1818
- cb(null, data);
1819
- });
1820
- } else {
1821
- return data;
1822
- }
1823
- };
1824
- }
1825
- });
1826
-
1827
- // ../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/index.js
1828
- var require_lib = __commonJS({
1829
- "../../.yarn/cache/properties-npm-1.2.1-f3483bd75a-f385f8b969.zip/node_modules/properties/lib/index.js"(exports2, module2) {
1830
- "use strict";
1831
- var Stringifier = require_stringifier();
1832
- module2.exports = {
1833
- parse: require_read(),
1834
- stringify: require_write(),
1835
- createStringifier: function() {
1836
- return new Stringifier();
1837
- }
1838
- };
1839
- }
1840
- });
1841
-
1842
- // ../allure-js-commons/dist/src/writers/FileSystemAllureWriter.js
1843
- var require_FileSystemAllureWriter = __commonJS({
1844
- "../allure-js-commons/dist/src/writers/FileSystemAllureWriter.js"(exports2) {
1845
- "use strict";
1846
- Object.defineProperty(exports2, "__esModule", { value: true });
1847
- exports2.FileSystemAllureWriter = void 0;
1848
- var fs_1 = require("fs");
1849
- var path_1 = require("path");
1850
- var properties_1 = require_lib();
1851
- var writeJson = (path, data) => {
1852
- (0, fs_1.writeFileSync)(path, JSON.stringify(data), { encoding: "utf-8" });
1853
- };
1854
- var FileSystemAllureWriter = class {
1855
- constructor(config) {
1856
- this.config = config;
1857
- if (!(0, fs_1.existsSync)(this.config.resultsDir)) {
1858
- (0, fs_1.mkdirSync)(this.config.resultsDir, {
1859
- recursive: true
1860
- });
1861
- }
1862
- }
1863
- writeAttachment(name, content, encoding = "utf-8") {
1864
- const path = this.buildPath(name);
1865
- (0, fs_1.writeFileSync)(path, content, { encoding });
1866
- }
1867
- writeAttachmentFromPath(from, distFileName) {
1868
- const to = this.buildPath(distFileName);
1869
- (0, fs_1.copyFileSync)(from, to);
1870
- }
1871
- writeEnvironmentInfo(info) {
1872
- const text = (0, properties_1.stringify)(info, { unicode: true }).toString();
1873
- const path = this.buildPath("environment.properties");
1874
- (0, fs_1.writeFileSync)(path, text);
1875
- }
1876
- writeCategoriesDefinitions(categories) {
1877
- const path = this.buildPath("categories.json");
1878
- writeJson(path, categories);
1879
- }
1880
- writeGroup(result) {
1881
- const path = this.buildPath(`${result.uuid}-container.json`);
1882
- writeJson(path, result);
1883
- }
1884
- writeResult(result) {
1885
- const path = this.buildPath(`${result.uuid}-result.json`);
1886
- writeJson(path, result);
1887
- }
1888
- buildPath(name) {
1889
- return (0, path_1.join)(this.config.resultsDir, name);
1890
- }
1891
- };
1892
- exports2.FileSystemAllureWriter = FileSystemAllureWriter;
1893
- }
1894
- });
1895
-
1896
- // ../allure-js-commons/dist/src/writers/InMemoryAllureWriter.js
1897
- var require_InMemoryAllureWriter = __commonJS({
1898
- "../allure-js-commons/dist/src/writers/InMemoryAllureWriter.js"(exports2) {
1899
- "use strict";
1900
- Object.defineProperty(exports2, "__esModule", { value: true });
1901
- exports2.InMemoryAllureWriter = void 0;
1902
- var fs_1 = require("fs");
1903
- var InMemoryAllureWriter = class {
1904
- constructor() {
1905
- this.groups = [];
1906
- this.tests = [];
1907
- this.attachments = {};
1908
- }
1909
- writeGroup(result) {
1910
- this.groups.push(result);
1911
- }
1912
- writeResult(result) {
1913
- this.tests.push(result);
1914
- }
1915
- writeAttachment(name, content) {
1916
- this.attachments[name] = content;
1917
- }
1918
- writeAttachmentFromPath(from, toFileName) {
1919
- this.attachments[toFileName] = (0, fs_1.readFileSync)(from);
1920
- }
1921
- writeCategoriesDefinitions(categories) {
1922
- if (this.categories) {
1923
- console.warn("overwriting existing categories");
1924
- }
1925
- this.categories = categories;
1926
- }
1927
- writeEnvironmentInfo(envInfo) {
1928
- if (this.envInfo) {
1929
- console.warn("overwriting existing environment info");
1930
- }
1931
- this.envInfo = envInfo;
1932
- }
1933
- reset() {
1934
- this.groups = [];
1935
- this.tests = [];
1936
- this.attachments = {};
1937
- }
1938
- getMaybeTestByName(name) {
1939
- return this.tests.find((t) => t.name === name);
1940
- }
1941
- getTestByName(name) {
1942
- const res = this.getMaybeTestByName(name);
1943
- if (!res) {
1944
- throw new Error(`Test not found: ${name}`);
1945
- }
1946
- return res;
1947
- }
1948
- getMaybeGroupByName(name) {
1949
- return this.groups.find((g) => g.name === name);
1950
- }
1951
- getGroupByName(name) {
1952
- const res = this.getMaybeGroupByName(name);
1953
- if (!res) {
1954
- throw new Error(`Group not found: ${name}`);
1955
- }
1956
- return res;
1957
- }
1958
- };
1959
- exports2.InMemoryAllureWriter = InMemoryAllureWriter;
1960
- }
1961
- });
1962
-
1963
- // ../allure-js-commons/dist/src/writers/MessageAllureWriter.js
1964
- var require_MessageAllureWriter = __commonJS({
1965
- "../allure-js-commons/dist/src/writers/MessageAllureWriter.js"(exports2) {
1966
- "use strict";
1967
- Object.defineProperty(exports2, "__esModule", { value: true });
1968
- exports2.MessageAllureWriter = void 0;
1969
- var fs_1 = require("fs");
1970
- var properties_1 = require_lib();
1971
- var sendEvent = (event) => {
1972
- var _a;
1973
- (_a = process.send) === null || _a === void 0 ? void 0 : _a.call(process, JSON.stringify(event));
1974
- };
1975
- var sendData = (path, type, data) => {
1976
- sendEvent({ path, type, data: data.toString("base64") });
1977
- };
1978
- var writeJson = (path, type, data) => {
1979
- sendData(path, type, Buffer.from(JSON.stringify(data)));
1980
- };
1981
- var MessageAllureWriter = class {
1982
- writeAttachment(name, content, encoding = "utf-8") {
1983
- sendData(name, "attachment", typeof content === "string" ? Buffer.from(content, encoding) : content);
1984
- }
1985
- writeAttachmentFromPath(from, distFileName) {
1986
- sendData(distFileName, "attachment", (0, fs_1.readFileSync)(from));
1987
- }
1988
- writeEnvironmentInfo(info) {
1989
- const text = (0, properties_1.stringify)(info, { unicode: true }).toString();
1990
- sendData("environment.properties", "misc", Buffer.from(text));
1991
- }
1992
- writeCategoriesDefinitions(categories) {
1993
- writeJson("categories.json", "misc", categories);
1994
- }
1995
- writeGroup(result) {
1996
- writeJson(`${result.uuid}-container.json`, "container", result);
1997
- }
1998
- writeResult(result) {
1999
- writeJson(`${result.uuid}-result.json`, "result", result);
2000
- }
2001
- };
2002
- exports2.MessageAllureWriter = MessageAllureWriter;
2003
- }
2004
- });
2005
-
2006
- // ../allure-js-commons/dist/src/writers/utils.js
2007
- var require_utils2 = __commonJS({
2008
- "../allure-js-commons/dist/src/writers/utils.js"(exports2) {
2009
- "use strict";
2010
- Object.defineProperty(exports2, "__esModule", { value: true });
2011
- exports2.typeToExtension = void 0;
2012
- var extensionsByType = {
2013
- "application/andrew-inset": ".ez",
2014
- "application/applixware": ".aw",
2015
- "application/atom+xml": ".atom",
2016
- "application/atomcat+xml": ".atomcat",
2017
- "application/atomsvc+xml": ".atomsvc",
2018
- "application/bizagi-modeler": ".bpm",
2019
- "application/cbor": ".cbor",
2020
- "application/ccxml+xml": ".ccxml",
2021
- "application/coreldraw": ".cdr",
2022
- "application/cu-seeme": ".cu",
2023
- "application/dash+xml": ".mpd",
2024
- "application/davmount+xml": ".davmount",
2025
- "application/dif+xml": ".dif",
2026
- "application/dita+xml; format=map": ".ditamap",
2027
- "application/dita+xml; format=topic": ".dita",
2028
- "application/dita+xml; format=val": ".ditaval",
2029
- "application/ecmascript": ".ecma",
2030
- "application/emma+xml": ".emma",
2031
- "application/envi.hdr": ".hdr",
2032
- "application/epub+zip": ".epub",
2033
- "application/fits": ".fits",
2034
- "application/font-tdpfr": ".pfr",
2035
- "application/gzip": ".gz",
2036
- "application/hyperstudio": ".stk",
2037
- "application/illustrator": ".ai",
2038
- "application/java-archive": ".jar",
2039
- "application/java-serialized-object": ".ser",
2040
- "application/java-vm": ".class",
2041
- "application/javascript": ".js",
2042
- "application/json": ".json",
2043
- "application/lost+xml": ".lostxml",
2044
- "application/mac-binhex40": ".hqx",
2045
- "application/mac-compactpro": ".cpt",
2046
- "application/manifest+json": ".webmanifest",
2047
- "application/marc": ".mrc",
2048
- "application/mathematica": ".ma",
2049
- "application/mathml+xml": ".mathml",
2050
- "application/mbox": ".mbox",
2051
- "application/mediaservercontrol+xml": ".mscml",
2052
- "application/mp4": ".mp4s",
2053
- "application/msword": ".doc",
2054
- "application/mxf": ".mxf",
2055
- "application/octet-stream": ".bin",
2056
- "application/oda": ".oda",
2057
- "application/oebps-package+xml": ".opf",
2058
- "application/ogg": ".ogx",
2059
- "application/onenote": ".onetmp",
2060
- "application/onenote; format=one": ".one",
2061
- "application/onenote; format=onetoc2": ".onetoc",
2062
- "application/onenote; format=package": ".onepkg",
2063
- "application/patch-ops-error+xml": ".xer",
2064
- "application/pdf": ".pdf",
2065
- "application/pgp-encrypted": ".pgp",
2066
- "application/pgp-signature": ".asc",
2067
- "application/pics-rules": ".prf",
2068
- "application/pkcs7-mime": ".p7m",
2069
- "application/pkcs7-signature": ".p7s",
2070
- "application/pkcs10": ".p10",
2071
- "application/pkix-cert": ".cer",
2072
- "application/pkix-crl": ".crl",
2073
- "application/pkix-pkipath": ".pkipath",
2074
- "application/pkixcmp": ".pki",
2075
- "application/pls+xml": ".pls",
2076
- "application/postscript": ".ps",
2077
- "application/prs.cww": ".cww",
2078
- "application/rdf+xml": ".rdf",
2079
- "application/reginfo+xml": ".rif",
2080
- "application/relax-ng-compact-syntax": ".rnc",
2081
- "application/resource-lists+xml": ".rl",
2082
- "application/resource-lists-diff+xml": ".rld",
2083
- "application/rls-services+xml": ".rs",
2084
- "application/rsd+xml": ".rsd",
2085
- "application/rss+xml": ".rss",
2086
- "application/rtf": ".rtf",
2087
- "application/sbml+xml": ".sbml",
2088
- "application/scvp-cv-request": ".scq",
2089
- "application/scvp-cv-response": ".scs",
2090
- "application/scvp-vp-request": ".spq",
2091
- "application/scvp-vp-response": ".spp",
2092
- "application/sdp": ".sdp",
2093
- "application/sereal": ".srl",
2094
- "application/set-payment-initiation": ".setpay",
2095
- "application/set-registration-initiation": ".setreg",
2096
- "application/shf+xml": ".shf",
2097
- "application/sldworks": ".sldprt",
2098
- "application/smil+xml": ".smi",
2099
- "application/sparql-query": ".rq",
2100
- "application/sparql-results+xml": ".srx",
2101
- "application/srgs": ".gram",
2102
- "application/srgs+xml": ".grxml",
2103
- "application/ssml+xml": ".ssml",
2104
- "application/timestamped-data": ".tsd",
2105
- "application/vnd.3gpp.pic-bw-large": ".plb",
2106
- "application/vnd.3gpp.pic-bw-small": ".psb",
2107
- "application/vnd.3gpp.pic-bw-var": ".pvb",
2108
- "application/vnd.3gpp2.tcap": ".tcap",
2109
- "application/vnd.3m.post-it-notes": ".pwn",
2110
- "application/vnd.accpac.simply.aso": ".aso",
2111
- "application/vnd.accpac.simply.imp": ".imp",
2112
- "application/vnd.acucobol": ".acu",
2113
- "application/vnd.acucorp": ".atc",
2114
- "application/vnd.adobe.aftereffects.project": ".aep",
2115
- "application/vnd.adobe.aftereffects.template": ".aet",
2116
- "application/vnd.adobe.air-application-installer-package+zip": ".air",
2117
- "application/vnd.adobe.indesign-idml-package": ".idml",
2118
- "application/vnd.adobe.xdp+xml": ".xdp",
2119
- "application/vnd.adobe.xfdf": ".xfdf",
2120
- "application/vnd.airzip.filesecure.azf": ".azf",
2121
- "application/vnd.airzip.filesecure.azs": ".azs",
2122
- "application/vnd.allure.image.diff": ".imagediff",
2123
- "application/vnd.allure.metadata+json": ".metadata",
2124
- "application/vnd.amazon.ebook": ".azw",
2125
- "application/vnd.americandynamics.acc": ".acc",
2126
- "application/vnd.amiga.ami": ".ami",
2127
- "application/vnd.android.package-archive": ".apk",
2128
- "application/vnd.anser-web-certificate-issue-initiation": ".cii",
2129
- "application/vnd.anser-web-funds-transfer-initiation": ".fti",
2130
- "application/vnd.antix.game-component": ".atx",
2131
- "application/vnd.apple.installer+xml": ".mpkg",
2132
- "application/vnd.apple.keynote": ".key",
2133
- "application/vnd.apple.mpegurl": ".m3u8",
2134
- "application/vnd.apple.numbers": ".numbers",
2135
- "application/vnd.apple.pages": ".pages",
2136
- "application/vnd.arastra.swi": ".swi",
2137
- "application/vnd.blueice.multipass": ".mpm",
2138
- "application/vnd.bmi": ".bmi",
2139
- "application/vnd.businessobjects": ".rep",
2140
- "application/vnd.chemdraw+xml": ".cdxml",
2141
- "application/vnd.chipnuts.karaoke-mmd": ".mmd",
2142
- "application/vnd.cinderella": ".cdy",
2143
- "application/vnd.claymore": ".cla",
2144
- "application/vnd.clonk.c4group": ".c4g",
2145
- "application/vnd.commonspace": ".csp",
2146
- "application/vnd.contact.cmsg": ".cdbcmsg",
2147
- "application/vnd.cosmocaller": ".cmc",
2148
- "application/vnd.crick.clicker": ".clkx",
2149
- "application/vnd.crick.clicker.keyboard": ".clkk",
2150
- "application/vnd.crick.clicker.palette": ".clkp",
2151
- "application/vnd.crick.clicker.template": ".clkt",
2152
- "application/vnd.crick.clicker.wordbank": ".clkw",
2153
- "application/vnd.criticaltools.wbs+xml": ".wbs",
2154
- "application/vnd.ctc-posml": ".pml",
2155
- "application/vnd.cups-ppd": ".ppd",
2156
- "application/vnd.curl.car": ".car",
2157
- "application/vnd.curl.pcurl": ".pcurl",
2158
- "application/vnd.data-vision.rdz": ".rdz",
2159
- "application/vnd.denovo.fcselayout-link": ".fe_launch",
2160
- "application/vnd.dna": ".dna",
2161
- "application/vnd.dolby.mlp": ".mlp",
2162
- "application/vnd.dpgraph": ".dpg",
2163
- "application/vnd.dreamfactory": ".dfac",
2164
- "application/vnd.dynageo": ".geo",
2165
- "application/vnd.ecowin.chart": ".mag",
2166
- "application/vnd.enliven": ".nml",
2167
- "application/vnd.epson.esf": ".esf",
2168
- "application/vnd.epson.msf": ".msf",
2169
- "application/vnd.epson.quickanime": ".qam",
2170
- "application/vnd.epson.salt": ".slt",
2171
- "application/vnd.epson.ssf": ".ssf",
2172
- "application/vnd.eszigno3+xml": ".es3",
2173
- "application/vnd.etsi.asic-e+zip": ".asice",
2174
- "application/vnd.etsi.asic-s+zip": ".asics",
2175
- "application/vnd.ezpix-album": ".ez2",
2176
- "application/vnd.ezpix-package": ".ez3",
2177
- "application/vnd.fdf": ".fdf",
2178
- "application/vnd.fdsn.mseed": ".mseed",
2179
- "application/vnd.fdsn.seed": ".seed",
2180
- "application/vnd.flographit": ".gph",
2181
- "application/vnd.fluxtime.clip": ".ftc",
2182
- "application/vnd.framemaker": ".fm",
2183
- "application/vnd.frogans.fnc": ".fnc",
2184
- "application/vnd.frogans.ltf": ".ltf",
2185
- "application/vnd.fsc.weblaunch": ".fsc",
2186
- "application/vnd.fujitsu.oasys": ".oas",
2187
- "application/vnd.fujitsu.oasys2": ".oa2",
2188
- "application/vnd.fujitsu.oasys3": ".oa3",
2189
- "application/vnd.fujitsu.oasysgp": ".fg5",
2190
- "application/vnd.fujitsu.oasysprs": ".bh2",
2191
- "application/vnd.fujixerox.ddd": ".ddd",
2192
- "application/vnd.fujixerox.docuworks": ".xdw",
2193
- "application/vnd.fujixerox.docuworks.binder": ".xbd",
2194
- "application/vnd.fuzzysheet": ".fzs",
2195
- "application/vnd.genomatix.tuxedo": ".txd",
2196
- "application/vnd.geogebra.file": ".ggb",
2197
- "application/vnd.geogebra.tool": ".ggt",
2198
- "application/vnd.geometry-explorer": ".gex",
2199
- "application/vnd.gmx": ".gmx",
2200
- "application/vnd.google-earth.kml+xml": ".kml",
2201
- "application/vnd.google-earth.kmz": ".kmz",
2202
- "application/vnd.grafeq": ".gqf",
2203
- "application/vnd.groove-account": ".gac",
2204
- "application/vnd.groove-help": ".ghf",
2205
- "application/vnd.groove-identity-message": ".gim",
2206
- "application/vnd.groove-injector": ".grv",
2207
- "application/vnd.groove-tool-message": ".gtm",
2208
- "application/vnd.groove-tool-template": ".tpl",
2209
- "application/vnd.groove-vcard": ".vcg",
2210
- "application/vnd.handheld-entertainment+xml": ".zmm",
2211
- "application/vnd.hbci": ".hbci",
2212
- "application/vnd.hhe.lesson-player": ".les",
2213
- "application/vnd.hp-hpgl": ".hpgl",
2214
- "application/vnd.hp-hpid": ".hpid",
2215
- "application/vnd.hp-hps": ".hps",
2216
- "application/vnd.hp-jlyt": ".jlt",
2217
- "application/vnd.hp-pcl": ".pcl",
2218
- "application/vnd.hp-pclxl": ".pclxl",
2219
- "application/vnd.hydrostatix.sof-data": ".sfd-hdstx",
2220
- "application/vnd.hzn-3d-crossword": ".x3d",
2221
- "application/vnd.ibm.minipay": ".mpy",
2222
- "application/vnd.ibm.modcap": ".afp",
2223
- "application/vnd.ibm.rights-management": ".irm",
2224
- "application/vnd.ibm.secure-container": ".sc",
2225
- "application/vnd.iccprofile": ".icc",
2226
- "application/vnd.igloader": ".igl",
2227
- "application/vnd.immervision-ivp": ".ivp",
2228
- "application/vnd.immervision-ivu": ".ivu",
2229
- "application/vnd.intercon.formnet": ".xpw",
2230
- "application/vnd.intu.qbo": ".qbo",
2231
- "application/vnd.intu.qfx": ".qfx",
2232
- "application/vnd.iptc.g2.newsmessage+xml": ".nar",
2233
- "application/vnd.ipunplugged.rcprofile": ".rcprofile",
2234
- "application/vnd.irepository.package+xml": ".irp",
2235
- "application/vnd.is-xpr": ".xpr",
2236
- "application/vnd.jam": ".jam",
2237
- "application/vnd.java.hprof": ".hprof",
2238
- "application/vnd.java.hprof.text": ".hprof.txt",
2239
- "application/vnd.jcp.javame.midlet-rms": ".rms",
2240
- "application/vnd.jisp": ".jisp",
2241
- "application/vnd.joost.joda-archive": ".joda",
2242
- "application/vnd.kahootz": ".ktz",
2243
- "application/vnd.kde.karbon": ".karbon",
2244
- "application/vnd.kde.kchart": ".chrt",
2245
- "application/vnd.kde.kformula": ".kfo",
2246
- "application/vnd.kde.kivio": ".flw",
2247
- "application/vnd.kde.kontour": ".kon",
2248
- "application/vnd.kde.kpresenter": ".kpr",
2249
- "application/vnd.kde.kspread": ".ksp",
2250
- "application/vnd.kde.kword": ".kwd",
2251
- "application/vnd.kenameaapp": ".htke",
2252
- "application/vnd.kidspiration": ".kia",
2253
- "application/vnd.kinar": ".kne",
2254
- "application/vnd.koan": ".skp",
2255
- "application/vnd.kodak-descriptor": ".sse",
2256
- "application/vnd.llamagraphics.life-balance.desktop": ".lbd",
2257
- "application/vnd.llamagraphics.life-balance.exchange+xml": ".lbe",
2258
- "application/vnd.lotus-1-2-3": ".wk1",
2259
- "application/vnd.lotus-1-2-3; version=2": ".wk1",
2260
- "application/vnd.lotus-1-2-3; version=3": ".wk3",
2261
- "application/vnd.lotus-1-2-3; version=4": ".wk4",
2262
- "application/vnd.lotus-1-2-3; version=97+9.x": ".123",
2263
- "application/vnd.lotus-approach": ".apr",
2264
- "application/vnd.lotus-freelance": ".pre",
2265
- "application/vnd.lotus-notes": ".nsf",
2266
- "application/vnd.lotus-organizer": ".org",
2267
- "application/vnd.lotus-wordpro": ".lwp",
2268
- "application/vnd.macports.portpkg": ".portpkg",
2269
- "application/vnd.mcd": ".mcd",
2270
- "application/vnd.medcalcdata": ".mc1",
2271
- "application/vnd.mediastation.cdkey": ".cdkey",
2272
- "application/vnd.mfer": ".mwf",
2273
- "application/vnd.mfmp": ".mfm",
2274
- "application/vnd.micrografx.flo": ".flo",
2275
- "application/vnd.micrografx.igx": ".igx",
2276
- "application/vnd.mif": ".mif",
2277
- "application/vnd.mindjet.mindmanager": ".mmp",
2278
- "application/vnd.mobius.daf": ".daf",
2279
- "application/vnd.mobius.dis": ".dis",
2280
- "application/vnd.mobius.mbk": ".mbk",
2281
- "application/vnd.mobius.mqy": ".mqy",
2282
- "application/vnd.mobius.msl": ".msl",
2283
- "application/vnd.mobius.plc": ".plc",
2284
- "application/vnd.mobius.txf": ".txf",
2285
- "application/vnd.mophun.application": ".mpn",
2286
- "application/vnd.mophun.certificate": ".mpc",
2287
- "application/vnd.mozilla.xul+xml": ".xul",
2288
- "application/vnd.ms-artgalry": ".cil",
2289
- "application/vnd.ms-cab-compressed": ".cab",
2290
- "application/vnd.ms-excel": ".xls",
2291
- "application/vnd.ms-excel.addin.macroenabled.12": ".xlam",
2292
- "application/vnd.ms-excel.sheet.binary.macroenabled.12": ".xlsb",
2293
- "application/vnd.ms-excel.sheet.macroenabled.12": ".xlsm",
2294
- "application/vnd.ms-excel.template.macroenabled.12": ".xltm",
2295
- "application/vnd.ms-fontobject": ".eot",
2296
- "application/vnd.ms-htmlhelp": ".chm",
2297
- "application/vnd.ms-ims": ".ims",
2298
- "application/vnd.ms-lrm": ".lrm",
2299
- "application/vnd.ms-outlook": ".msg",
2300
- "application/vnd.ms-outlook-pst": ".pst",
2301
- "application/vnd.ms-pki.seccat": ".cat",
2302
- "application/vnd.ms-pki.stl": ".stl",
2303
- "application/vnd.ms-powerpoint": ".ppt",
2304
- "application/vnd.ms-powerpoint.addin.macroenabled.12": ".ppam",
2305
- "application/vnd.ms-powerpoint.presentation.macroenabled.12": ".pptm",
2306
- "application/vnd.ms-powerpoint.slide.macroenabled.12": ".sldm",
2307
- "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ".ppsm",
2308
- "application/vnd.ms-powerpoint.template.macroenabled.12": ".potm",
2309
- "application/vnd.ms-project": ".mpp",
2310
- "application/vnd.ms-visio.drawing": ".vsdx",
2311
- "application/vnd.ms-visio.drawing.macroenabled.12": ".vsdm",
2312
- "application/vnd.ms-visio.stencil": ".vssx",
2313
- "application/vnd.ms-visio.stencil.macroenabled.12": ".vssm",
2314
- "application/vnd.ms-visio.template": ".vstx",
2315
- "application/vnd.ms-visio.template.macroenabled.12": ".vstm",
2316
- "application/vnd.ms-word.document.macroenabled.12": ".docm",
2317
- "application/vnd.ms-word.template.macroenabled.12": ".dotm",
2318
- "application/vnd.ms-works": ".wps",
2319
- "application/vnd.ms-wpl": ".wpl",
2320
- "application/vnd.ms-xpsdocument": ".xps",
2321
- "application/vnd.mseq": ".mseq",
2322
- "application/vnd.musician": ".mus",
2323
- "application/vnd.muvee.style": ".msty",
2324
- "application/vnd.neurolanguage.nlu": ".nlu",
2325
- "application/vnd.noblenet-directory": ".nnd",
2326
- "application/vnd.noblenet-sealer": ".nns",
2327
- "application/vnd.noblenet-web": ".nnw",
2328
- "application/vnd.nokia.n-gage.data": ".ngdat",
2329
- "application/vnd.nokia.n-gage.symbian.install": ".n-gage",
2330
- "application/vnd.nokia.radio-preset": ".rpst",
2331
- "application/vnd.nokia.radio-presets": ".rpss",
2332
- "application/vnd.novadigm.edm": ".edm",
2333
- "application/vnd.novadigm.edx": ".edx",
2334
- "application/vnd.novadigm.ext": ".ext",
2335
- "application/vnd.oasis.opendocument.base": ".odb",
2336
- "application/vnd.oasis.opendocument.chart": ".odc",
2337
- "application/vnd.oasis.opendocument.chart-template": ".otc",
2338
- "application/vnd.oasis.opendocument.flat.presentation": ".fodp",
2339
- "application/vnd.oasis.opendocument.flat.spreadsheet": ".fods",
2340
- "application/vnd.oasis.opendocument.flat.text": ".fodt",
2341
- "application/vnd.oasis.opendocument.formula": ".odf",
2342
- "application/vnd.oasis.opendocument.formula-template": ".odft",
2343
- "application/vnd.oasis.opendocument.graphics": ".odg",
2344
- "application/vnd.oasis.opendocument.graphics-template": ".otg",
2345
- "application/vnd.oasis.opendocument.image": ".odi",
2346
- "application/vnd.oasis.opendocument.image-template": ".oti",
2347
- "application/vnd.oasis.opendocument.presentation": ".odp",
2348
- "application/vnd.oasis.opendocument.presentation-template": ".otp",
2349
- "application/vnd.oasis.opendocument.spreadsheet": ".ods",
2350
- "application/vnd.oasis.opendocument.spreadsheet-template": ".ots",
2351
- "application/vnd.oasis.opendocument.text": ".odt",
2352
- "application/vnd.oasis.opendocument.text-master": ".otm",
2353
- "application/vnd.oasis.opendocument.text-template": ".ott",
2354
- "application/vnd.oasis.opendocument.text-web": ".oth",
2355
- "application/vnd.olpc-sugar": ".xo",
2356
- "application/vnd.oma.dd2+xml": ".dd2",
2357
- "application/vnd.openofficeorg.autotext": ".bau",
2358
- "application/vnd.openofficeorg.extension": ".oxt",
2359
- "application/vnd.openxmlformats-officedocument.presentationml.presentation": ".pptx",
2360
- "application/vnd.openxmlformats-officedocument.presentationml.slide": ".sldx",
2361
- "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ".ppsx",
2362
- "application/vnd.openxmlformats-officedocument.presentationml.template": ".potx",
2363
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ".xlsx",
2364
- "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ".xltx",
2365
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ".docx",
2366
- "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ".dotx",
2367
- "application/vnd.osgi.dp": ".dp",
2368
- "application/vnd.palm": ".pqa",
2369
- "application/vnd.pg.format": ".str",
2370
- "application/vnd.pg.osasli": ".ei6",
2371
- "application/vnd.picsel": ".efif",
2372
- "application/vnd.pocketlearn": ".plf",
2373
- "application/vnd.powerbuilder6": ".pbd",
2374
- "application/vnd.previewsystems.box": ".box",
2375
- "application/vnd.proteus.magazine": ".mgz",
2376
- "application/vnd.publishare-delta-tree": ".qps",
2377
- "application/vnd.pvi.ptid1": ".ptid",
2378
- "application/vnd.quark.quarkxpress": ".qxd",
2379
- "application/vnd.recordare.musicxml": ".mxl",
2380
- "application/vnd.recordare.musicxml+xml": ".musicxml",
2381
- "application/vnd.rim.cod": ".cod",
2382
- "application/vnd.rn-realmedia": ".rm",
2383
- "application/vnd.route66.link66+xml": ".link66",
2384
- "application/vnd.seemail": ".see",
2385
- "application/vnd.sema": ".sema",
2386
- "application/vnd.semd": ".semd",
2387
- "application/vnd.semf": ".semf",
2388
- "application/vnd.shana.informed.formdata": ".ifm",
2389
- "application/vnd.shana.informed.formtemplate": ".itp",
2390
- "application/vnd.shana.informed.interchange": ".iif",
2391
- "application/vnd.shana.informed.package": ".ipk",
2392
- "application/vnd.simtech-mindmapper": ".twd",
2393
- "application/vnd.smaf": ".mmf",
2394
- "application/vnd.smart.teacher": ".teacher",
2395
- "application/vnd.solent.sdkm+xml": ".sdkm",
2396
- "application/vnd.spotfire.dxp": ".dxp",
2397
- "application/vnd.spotfire.sfs": ".sfs",
2398
- "application/vnd.stardivision.calc": ".sdc",
2399
- "application/vnd.stardivision.draw": ".sda",
2400
- "application/vnd.stardivision.impress": ".sdd",
2401
- "application/vnd.stardivision.math": ".smf",
2402
- "application/vnd.stardivision.writer": ".sdw",
2403
- "application/vnd.stardivision.writer-global": ".sgl",
2404
- "application/vnd.sun.xml.calc": ".sxc",
2405
- "application/vnd.sun.xml.calc.template": ".stc",
2406
- "application/vnd.sun.xml.draw": ".sxd",
2407
- "application/vnd.sun.xml.draw.template": ".std",
2408
- "application/vnd.sun.xml.impress": ".sxi",
2409
- "application/vnd.sun.xml.impress.template": ".sti",
2410
- "application/vnd.sun.xml.math": ".sxm",
2411
- "application/vnd.sun.xml.writer": ".sxw",
2412
- "application/vnd.sun.xml.writer.global": ".sxg",
2413
- "application/vnd.sun.xml.writer.template": ".stw",
2414
- "application/vnd.sus-calendar": ".sus",
2415
- "application/vnd.svd": ".svd",
2416
- "application/vnd.symbian.install": ".sis",
2417
- "application/vnd.syncml+xml": ".xsm",
2418
- "application/vnd.syncml.dm+wbxml": ".bdm",
2419
- "application/vnd.syncml.dm+xml": ".xdm",
2420
- "application/vnd.tao.intent-module-archive": ".tao",
2421
- "application/vnd.tcpdump.pcap": ".pcap",
2422
- "application/vnd.tmobile-livetv": ".tmo",
2423
- "application/vnd.trid.tpt": ".tpt",
2424
- "application/vnd.triscape.mxs": ".mxs",
2425
- "application/vnd.trueapp": ".tra",
2426
- "application/vnd.ufdl": ".ufd",
2427
- "application/vnd.uiq.theme": ".utz",
2428
- "application/vnd.umajin": ".umj",
2429
- "application/vnd.unity": ".unityweb",
2430
- "application/vnd.uoml+xml": ".uoml",
2431
- "application/vnd.vcx": ".vcx",
2432
- "application/vnd.visio": ".vsd",
2433
- "application/vnd.visionary": ".vis",
2434
- "application/vnd.vsf": ".vsf",
2435
- "application/vnd.wap.wbxml": ".wbxml",
2436
- "application/vnd.wap.wmlc": ".wmlc",
2437
- "application/vnd.wap.wmlscriptc": ".wmlsc",
2438
- "application/vnd.webturbo": ".wtb",
2439
- "application/vnd.wolfram.wl": ".wl",
2440
- "application/vnd.wordperfect": ".wpd",
2441
- "application/vnd.wqd": ".wqd",
2442
- "application/vnd.wt.stf": ".stf",
2443
- "application/vnd.xara": ".xar",
2444
- "application/vnd.xfdl": ".xfdl",
2445
- "application/vnd.yamaha.hv-dic": ".hvd",
2446
- "application/vnd.yamaha.hv-script": ".hvs",
2447
- "application/vnd.yamaha.hv-voice": ".hvp",
2448
- "application/vnd.yamaha.openscoreformat": ".osf",
2449
- "application/vnd.yamaha.openscoreformat.osfpvg+xml": ".osfpvg",
2450
- "application/vnd.yamaha.smaf-audio": ".saf",
2451
- "application/vnd.yamaha.smaf-phrase": ".spf",
2452
- "application/vnd.yellowriver-custom-menu": ".cmp",
2453
- "application/vnd.zul": ".zir",
2454
- "application/vnd.zzazz.deck+xml": ".zaz",
2455
- "application/voicexml+xml": ".vxml",
2456
- "application/warc": ".warc",
2457
- "application/wasm": ".wasm",
2458
- "application/winhlp": ".hlp",
2459
- "application/wsdl+xml": ".wsdl",
2460
- "application/wspolicy+xml": ".wspolicy",
2461
- "application/x-7z-compressed": ".7z",
2462
- "application/x-abiword": ".abw",
2463
- "application/x-ace-compressed": ".ace",
2464
- "application/x-adobe-indesign": ".indd",
2465
- "application/x-adobe-indesign-interchange": ".inx",
2466
- "application/x-apple-diskimage": ".dmg",
2467
- "application/x-appleworks": ".cwk",
2468
- "application/x-archive": ".ar",
2469
- "application/x-arj": ".arj",
2470
- "application/x-authorware-bin": ".aab",
2471
- "application/x-authorware-map": ".aam",
2472
- "application/x-authorware-seg": ".aas",
2473
- "application/x-axcrypt": ".axx",
2474
- "application/x-bat": ".bat",
2475
- "application/x-bcpio": ".bcpio",
2476
- "application/x-bibtex-text-file": ".bib",
2477
- "application/x-bittorrent": ".torrent",
2478
- "application/x-brotli": ".br",
2479
- "application/x-bzip": ".bz",
2480
- "application/x-bzip2": ".bz2",
2481
- "application/x-cdlink": ".vcd",
2482
- "application/x-chat": ".chat",
2483
- "application/x-chess-pgn": ".pgn",
2484
- "application/x-chrome-package": ".crx",
2485
- "application/x-compress": ".z",
2486
- "application/x-corelpresentations": ".shw",
2487
- "application/x-cpio": ".cpio",
2488
- "application/x-csh": ".csh",
2489
- "application/x-dbf": ".dbf",
2490
- "application/x-debian-package": ".deb",
2491
- "application/x-dex": ".dex",
2492
- "application/x-director": ".dir",
2493
- "application/x-doom": ".wad",
2494
- "application/x-dosexec": ".exe",
2495
- "application/x-dtbncx+xml": ".ncx",
2496
- "application/x-dtbook+xml": ".dtb",
2497
- "application/x-dtbresource+xml": ".res",
2498
- "application/x-dvi": ".dvi",
2499
- "application/x-elc": ".elc",
2500
- "application/x-endnote-refer": ".enw",
2501
- "application/x-erdas-hfa": ".hfa",
2502
- "application/x-esri-layer": ".lyr",
2503
- "application/x-fictionbook+xml": ".fb2",
2504
- "application/x-filemaker": ".fp7",
2505
- "application/x-font-adobe-metric": ".afm",
2506
- "application/x-font-bdf": ".bdf",
2507
- "application/x-font-ghostscript": ".gsf",
2508
- "application/x-font-linux-psf": ".psf",
2509
- "application/x-font-otf": ".otf",
2510
- "application/x-font-pcf": ".pcf",
2511
- "application/x-font-printer-metric": ".pfm",
2512
- "application/x-font-snf": ".snf",
2513
- "application/x-font-ttf": ".ttf",
2514
- "application/x-font-type1": ".pfa",
2515
- "application/x-futuresplash": ".spl",
2516
- "application/x-gnucash": ".gnucash",
2517
- "application/x-gnumeric": ".gnumeric",
2518
- "application/x-grib": ".grb",
2519
- "application/x-gtar": ".gtar",
2520
- "application/x-hdf": ".hdf",
2521
- "application/x-ibooks+zip": ".ibooks",
2522
- "application/x-internet-archive": ".arc",
2523
- "application/x-iso9660-image": ".iso",
2524
- "application/x-itunes-ipa": ".ipa",
2525
- "application/x-java-jnilib": ".jnilib",
2526
- "application/x-java-jnlp-file": ".jnlp",
2527
- "application/x-java-pack200": ".pack",
2528
- "application/x-killustrator": ".kil",
2529
- "application/x-latex": ".latex",
2530
- "application/x-lz4": ".lz4",
2531
- "application/x-lzip": ".lz",
2532
- "application/x-lzma": ".lzma",
2533
- "application/x-matlab-data": ".mat",
2534
- "application/x-memgraph": ".memgraph",
2535
- "application/x-mobipocket-ebook": ".prc",
2536
- "application/x-ms-application": ".application",
2537
- "application/x-ms-asx": ".asx",
2538
- "application/x-ms-installer": ".msi",
2539
- "application/x-ms-wmd": ".wmd",
2540
- "application/x-ms-wmz": ".wmz",
2541
- "application/x-ms-xbap": ".xbap",
2542
- "application/x-msaccess": ".mdb",
2543
- "application/x-msbinder": ".obd",
2544
- "application/x-mscardfile": ".crd",
2545
- "application/x-msclip": ".clp",
2546
- "application/x-msdownload": ".dll",
2547
- "application/x-msmediaview": ".mvb",
2548
- "application/x-msmoney": ".mny",
2549
- "application/x-mspublisher": ".pub",
2550
- "application/x-msschedule": ".scd",
2551
- "application/x-msterminal": ".trm",
2552
- "application/x-mswrite": ".wri",
2553
- "application/x-mysql-misam-compressed-index": ".MYI",
2554
- "application/x-mysql-misam-data": ".MYD",
2555
- "application/x-nesrom": ".nes",
2556
- "application/x-netcdf": ".nc",
2557
- "application/x-parquet": ".parquet",
2558
- "application/x-pkcs7-certificates": ".p7b",
2559
- "application/x-pkcs7-certreqresp": ".p7r",
2560
- "application/x-pkcs12": ".p12",
2561
- "application/x-project": ".mpx",
2562
- "application/x-prt": ".prt",
2563
- "application/x-quattro-pro": ".wq1",
2564
- "application/x-quattro-pro; version=1+5": ".wb1",
2565
- "application/x-quattro-pro; version=1-4": ".wq1",
2566
- "application/x-quattro-pro; version=5": ".wq2",
2567
- "application/x-quattro-pro; version=6": ".wb2",
2568
- "application/x-rar-compressed": ".rar",
2569
- "application/x-roxio-toast": ".toast",
2570
- "application/x-rpm": ".rpm",
2571
- "application/x-sas": ".sas",
2572
- "application/x-sas-access": ".sa7",
2573
- "application/x-sas-audit": ".st7",
2574
- "application/x-sas-backup": ".sas7bbak",
2575
- "application/x-sas-catalog": ".sc7",
2576
- "application/x-sas-data": ".sd7",
2577
- "application/x-sas-data-index": ".si7",
2578
- "application/x-sas-data-v6": ".sd2",
2579
- "application/x-sas-dmdb": ".s7m",
2580
- "application/x-sas-fdb": ".sf7",
2581
- "application/x-sas-itemstor": ".sr7",
2582
- "application/x-sas-mddb": ".sm7",
2583
- "application/x-sas-program-data": ".ss7",
2584
- "application/x-sas-putility": ".sp7",
2585
- "application/x-sas-transport": ".stx",
2586
- "application/x-sas-utility": ".su7",
2587
- "application/x-sas-view": ".sv7",
2588
- "application/x-sas-xport": ".xpt",
2589
- "application/x-sfdu": ".sfdu",
2590
- "application/x-sh": ".sh",
2591
- "application/x-shapefile": ".shp",
2592
- "application/x-shar": ".shar",
2593
- "application/x-shockwave-flash": ".swf",
2594
- "application/x-silverlight-app": ".xap",
2595
- "application/x-snappy-framed": ".sz",
2596
- "application/x-staroffice-template": ".vor",
2597
- "application/x-stata-do": ".do",
2598
- "application/x-stata-dta": ".dta",
2599
- "application/x-stuffit": ".sit",
2600
- "application/x-stuffitx": ".sitx",
2601
- "application/x-sv4cpio": ".sv4cpio",
2602
- "application/x-sv4crc": ".sv4crc",
2603
- "application/x-tar": ".tar",
2604
- "application/x-tex": ".tex",
2605
- "application/x-tex-tfm": ".tfm",
2606
- "application/x-texinfo": ".texinfo",
2607
- "application/x-tika-java-enterprise-archive": ".ear",
2608
- "application/x-tika-java-web-archive": ".war",
2609
- "application/x-tika-msworks-spreadsheet": ".xlr",
2610
- "application/x-tmx": ".tmx",
2611
- "application/x-uc2-compressed": ".uc2",
2612
- "application/x-ustar": ".ustar",
2613
- "application/x-vmdk": ".vmdk",
2614
- "application/x-wais-source": ".src",
2615
- "application/x-webarchive": ".webarchive",
2616
- "application/x-x509-cert": ".crt",
2617
- "application/x-x509-cert; format=der": ".der",
2618
- "application/x-x509-cert; format=pem": ".pem",
2619
- "application/x-xfig": ".fig",
2620
- "application/x-xliff+xml": ".xlf",
2621
- "application/x-xliff+zip": ".xlz",
2622
- "application/x-xmind": ".xmind",
2623
- "application/x-xpinstall": ".xpi",
2624
- "application/x-xz": ".xz",
2625
- "application/x-zoo": ".zoo",
2626
- "application/xenc+xml": ".xenc",
2627
- "application/xhtml+xml": ".xhtml",
2628
- "application/xml": ".xml",
2629
- "application/xml-dtd": ".dtd",
2630
- "application/xop+xml": ".xop",
2631
- "application/xquery": ".xq",
2632
- "application/xslfo+xml": ".xslfo",
2633
- "application/xslt+xml": ".xslt",
2634
- "application/xspf+xml": ".xspf",
2635
- "application/xv+xml": ".mxml",
2636
- "application/zip": ".zip",
2637
- "application/zstd": ".zst",
2638
- "audio/ac3": ".ac3",
2639
- "audio/adpcm": ".adp",
2640
- "audio/amr": ".amr",
2641
- "audio/basic": ".au",
2642
- "audio/midi": ".mid",
2643
- "audio/mp4": ".mp4a",
2644
- "audio/mpeg": ".mpga",
2645
- "audio/ogg": ".oga",
2646
- "audio/opus": ".opus",
2647
- "audio/speex": ".spx",
2648
- "audio/vnd.adobe.soundbooth": ".asnd",
2649
- "audio/vnd.digital-winds": ".eol",
2650
- "audio/vnd.dts": ".dts",
2651
- "audio/vnd.dts.hd": ".dtshd",
2652
- "audio/vnd.lucent.voice": ".lvp",
2653
- "audio/vnd.ms-playready.media.pya": ".pya",
2654
- "audio/vnd.nuera.ecelp4800": ".ecelp4800",
2655
- "audio/vnd.nuera.ecelp7470": ".ecelp7470",
2656
- "audio/vnd.nuera.ecelp9600": ".ecelp9600",
2657
- "audio/vnd.wave": ".wav",
2658
- "audio/vorbis": ".ogg",
2659
- "audio/x-aac": ".aac",
2660
- "audio/x-aiff": ".aif",
2661
- "audio/x-caf": ".caf",
2662
- "audio/x-flac": ".flac",
2663
- "audio/x-matroska": ".mka",
2664
- "audio/x-mod": ".mod",
2665
- "audio/x-mpegurl": ".m3u",
2666
- "audio/x-ms-wax": ".wax",
2667
- "audio/x-ms-wma": ".wma",
2668
- "audio/x-pn-realaudio": ".ram",
2669
- "audio/x-pn-realaudio-plugin": ".rmp",
2670
- "chemical/x-cdx": ".cdx",
2671
- "chemical/x-cif": ".cif",
2672
- "chemical/x-cmdf": ".cmdf",
2673
- "chemical/x-cml": ".cml",
2674
- "chemical/x-csml": ".csml",
2675
- "chemical/x-pdb": ".pdb",
2676
- "chemical/x-xyz": ".xyz",
2677
- "image/aces": ".exr",
2678
- "image/avif": ".avif",
2679
- "image/bmp": ".bmp",
2680
- "image/cgm": ".cgm",
2681
- "image/emf": ".emf",
2682
- "image/g3fax": ".g3",
2683
- "image/gif": ".gif",
2684
- "image/heic": ".heic",
2685
- "image/heif": ".heif",
2686
- "image/icns": ".icns",
2687
- "image/ief": ".ief",
2688
- "image/jp2": ".jp2",
2689
- "image/jpeg": ".jpg",
2690
- "image/jpm": ".jpm",
2691
- "image/jpx": ".jpf",
2692
- "image/jxl": ".jxl",
2693
- "image/nitf": ".ntf",
2694
- "image/png": ".png",
2695
- "image/prs.btif": ".btif",
2696
- "image/svg+xml": ".svg",
2697
- "image/tiff": ".tiff",
2698
- "image/vnd.adobe.photoshop": ".psd",
2699
- "image/vnd.adobe.premiere": ".ppj",
2700
- "image/vnd.dgn": ".dgn",
2701
- "image/vnd.djvu": ".djvu",
2702
- "image/vnd.dwg": ".dwg",
2703
- "image/vnd.dxb": ".dxb",
2704
- "image/vnd.dxf": ".dxf",
2705
- "image/vnd.fastbidsheet": ".fbs",
2706
- "image/vnd.fpx": ".fpx",
2707
- "image/vnd.fst": ".fst",
2708
- "image/vnd.fujixerox.edmics-mmr": ".mmr",
2709
- "image/vnd.fujixerox.edmics-rlc": ".rlc",
2710
- "image/vnd.microsoft.icon": ".ico",
2711
- "image/vnd.ms-modi": ".mdi",
2712
- "image/vnd.net-fpx": ".npx",
2713
- "image/vnd.wap.wbmp": ".wbmp",
2714
- "image/vnd.xiff": ".xif",
2715
- "image/vnd.zbrush.dcx": ".dcx",
2716
- "image/vnd.zbrush.pcx": ".pcx",
2717
- "image/webp": ".webp",
2718
- "image/wmf": ".wmf",
2719
- "image/x-bpg": ".bpg",
2720
- "image/x-cmu-raster": ".ras",
2721
- "image/x-cmx": ".cmx",
2722
- "image/x-dpx": ".dpx",
2723
- "image/x-emf-compressed": ".emz",
2724
- "image/x-freehand": ".fh",
2725
- "image/x-jbig2": ".jb2",
2726
- "image/x-jp2-codestream": ".j2c",
2727
- "image/x-pict": ".pic",
2728
- "image/x-portable-anymap": ".pnm",
2729
- "image/x-portable-bitmap": ".pbm",
2730
- "image/x-portable-graymap": ".pgm",
2731
- "image/x-portable-pixmap": ".ppm",
2732
- "image/x-raw-adobe": ".dng",
2733
- "image/x-raw-canon": ".crw",
2734
- "image/x-raw-casio": ".bay",
2735
- "image/x-raw-epson": ".erf",
2736
- "image/x-raw-fuji": ".raf",
2737
- "image/x-raw-hasselblad": ".3fr",
2738
- "image/x-raw-imacon": ".fff",
2739
- "image/x-raw-kodak": ".k25",
2740
- "image/x-raw-leaf": ".mos",
2741
- "image/x-raw-logitech": ".pxn",
2742
- "image/x-raw-mamiya": ".mef",
2743
- "image/x-raw-minolta": ".mrw",
2744
- "image/x-raw-nikon": ".nef",
2745
- "image/x-raw-olympus": ".orf",
2746
- "image/x-raw-panasonic": ".raw",
2747
- "image/x-raw-pentax": ".ptx",
2748
- "image/x-raw-phaseone": ".iiq",
2749
- "image/x-raw-rawzor": ".rwz",
2750
- "image/x-raw-red": ".r3d",
2751
- "image/x-raw-sigma": ".x3f",
2752
- "image/x-raw-sony": ".arw",
2753
- "image/x-rgb": ".rgb",
2754
- "image/x-tga": ".tga",
2755
- "image/x-xbitmap": ".xbm",
2756
- "image/x-xcf": ".xcf",
2757
- "image/x-xpixmap": ".xpm",
2758
- "image/x-xwindowdump": ".xwd",
2759
- "message/rfc822": ".eml",
2760
- "message/x-emlx": ".emlx",
2761
- "model/e57": ".e57",
2762
- "model/iges": ".igs",
2763
- "model/mesh": ".msh",
2764
- "model/vnd.dwf": ".dwf",
2765
- "model/vnd.dwfx+xps": ".dwfx",
2766
- "model/vnd.gdl": ".gdl",
2767
- "model/vnd.gtw": ".gtw",
2768
- "model/vnd.mts": ".mts",
2769
- "model/vnd.vtu": ".vtu",
2770
- "model/vrml": ".wrl",
2771
- "multipart/related": ".mht",
2772
- "text/asp": ".asp",
2773
- "text/aspdotnet": ".aspx",
2774
- "text/calendar": ".ics",
2775
- "text/css": ".css",
2776
- "text/csv": ".csv",
2777
- "text/html": ".html",
2778
- "text/iso19139+xml": ".iso19139",
2779
- "text/plain": ".txt",
2780
- "text/prs.lines.tag": ".dsc",
2781
- "text/richtext": ".rtx",
2782
- "text/sgml": ".sgml",
2783
- "text/tab-separated-values": ".tsv",
2784
- "text/troff": ".t",
2785
- "text/uri-list": ".uri",
2786
- "text/vnd.curl": ".curl",
2787
- "text/vnd.curl.dcurl": ".dcurl",
2788
- "text/vnd.curl.mcurl": ".mcurl",
2789
- "text/vnd.curl.scurl": ".scurl",
2790
- "text/vnd.fly": ".fly",
2791
- "text/vnd.fmi.flexstor": ".flx",
2792
- "text/vnd.graphviz": ".gv",
2793
- "text/vnd.in3d.3dml": ".3dml",
2794
- "text/vnd.in3d.spot": ".spot",
2795
- "text/vnd.iptc.anpa": ".anpa",
2796
- "text/vnd.sun.j2me.app-descriptor": ".jad",
2797
- "text/vnd.wap.wml": ".wml",
2798
- "text/vnd.wap.wmlscript": ".wmls",
2799
- "text/vtt": ".vtt",
2800
- "text/x-actionscript": ".as",
2801
- "text/x-ada": ".ada",
2802
- "text/x-applescript": ".applescript",
2803
- "text/x-asciidoc": ".asciidoc",
2804
- "text/x-aspectj": ".aj",
2805
- "text/x-assembly": ".s",
2806
- "text/x-awk": ".awk",
2807
- "text/x-basic": ".bas",
2808
- "text/x-c++hdr": ".hpp",
2809
- "text/x-c++src": ".cpp",
2810
- "text/x-cgi": ".cgi",
2811
- "text/x-chdr": ".h",
2812
- "text/x-clojure": ".clj",
2813
- "text/x-cobol": ".cbl",
2814
- "text/x-coffeescript": ".coffee",
2815
- "text/x-coldfusion": ".cfm",
2816
- "text/x-common-lisp": ".cl",
2817
- "text/x-config": ".config",
2818
- "text/x-csharp": ".cs",
2819
- "text/x-csrc": ".c",
2820
- "text/x-d": ".d",
2821
- "text/x-diff": ".diff",
2822
- "text/x-eiffel": ".e",
2823
- "text/x-emacs-lisp": ".el",
2824
- "text/x-erlang": ".erl",
2825
- "text/x-expect": ".exp",
2826
- "text/x-forth": ".4th",
2827
- "text/x-fortran": ".f",
2828
- "text/x-go": ".go",
2829
- "text/x-groovy": ".groovy",
2830
- "text/x-haml": ".haml",
2831
- "text/x-haskell": ".hs",
2832
- "text/x-haxe": ".hx",
2833
- "text/x-idl": ".idl",
2834
- "text/x-ini": ".ini",
2835
- "text/x-java-properties": ".properties",
2836
- "text/x-java-source": ".java",
2837
- "text/x-jsp": ".jsp",
2838
- "text/x-less": ".less",
2839
- "text/x-lex": ".l",
2840
- "text/x-log": ".log",
2841
- "text/x-lua": ".lua",
2842
- "text/x-ml": ".ml",
2843
- "text/x-modula": ".m3",
2844
- "text/x-objcsrc": ".m",
2845
- "text/x-ocaml": ".ocaml",
2846
- "text/x-pascal": ".p",
2847
- "text/x-perl": ".pl",
2848
- "text/x-php": ".php",
2849
- "text/x-prolog": ".pro",
2850
- "text/x-python": ".py",
2851
- "text/x-rexx": ".rexx",
2852
- "text/x-rsrc": ".r",
2853
- "text/x-rst": ".rest",
2854
- "text/x-ruby": ".rb",
2855
- "text/x-scala": ".scala",
2856
- "text/x-scheme": ".scm",
2857
- "text/x-sed": ".sed",
2858
- "text/x-setext": ".etx",
2859
- "text/x-sql": ".sql",
2860
- "text/x-stsrc": ".st",
2861
- "text/x-tcl": ".itk",
2862
- "text/x-uuencode": ".uu",
2863
- "text/x-vbasic": ".cls",
2864
- "text/x-vbdotnet": ".vb",
2865
- "text/x-vbscript": ".vbs",
2866
- "text/x-vcalendar": ".vcs",
2867
- "text/x-vcard": ".vcf",
2868
- "text/x-verilog": ".v",
2869
- "text/x-vhdl": ".vhd",
2870
- "text/x-web-markdown": ".md",
2871
- "text/x-yacc": ".y",
2872
- "text/x-yaml": ".yaml",
2873
- "video/3gpp": ".3gp",
2874
- "video/3gpp2": ".3g2",
2875
- "video/h261": ".h261",
2876
- "video/h263": ".h263",
2877
- "video/h264": ".h264",
2878
- "video/iso.segment": ".m4s",
2879
- "video/jpeg": ".jpgv",
2880
- "video/mj2": ".mj2",
2881
- "video/mp4": ".mp4",
2882
- "video/mpeg": ".mpeg",
2883
- "video/ogg": ".ogv",
2884
- "video/quicktime": ".qt",
2885
- "video/vnd.fvt": ".fvt",
2886
- "video/vnd.mpegurl": ".mxu",
2887
- "video/vnd.ms-playready.media.pyv": ".pyv",
2888
- "video/vnd.vivo": ".viv",
2889
- "video/webm": ".webm",
2890
- "video/x-dirac": ".drc",
2891
- "video/x-f4v": ".f4v",
2892
- "video/x-flc": ".flc",
2893
- "video/x-fli": ".fli",
2894
- "video/x-flv": ".flv",
2895
- "video/x-jng": ".jng",
2896
- "video/x-m4v": ".m4v",
2897
- "video/x-matroska": ".mkv",
2898
- "video/x-mng": ".mng",
2899
- "video/x-ms-asf": ".asf",
2900
- "video/x-ms-wm": ".wm",
2901
- "video/x-ms-wmv": ".wmv",
2902
- "video/x-ms-wmx": ".wmx",
2903
- "video/x-ms-wvx": ".wvx",
2904
- "video/x-msvideo": ".avi",
2905
- "video/x-ogm": ".ogm",
2906
- "video/x-sgi-movie": ".movie",
2907
- "x-conference/x-cooltalk": ".ice"
2908
- };
2909
- var typeToExtension = (options) => {
2910
- if (options.fileExtension) {
2911
- return options.fileExtension.startsWith(".") ? options.fileExtension : `.${options.fileExtension}`;
2912
- }
2913
- return extensionsByType[options.contentType] || "";
2914
- };
2915
- exports2.typeToExtension = typeToExtension;
2916
- }
2917
- });
2918
-
2919
- // ../allure-js-commons/dist/src/writers/index.js
2920
- var require_writers = __commonJS({
2921
- "../allure-js-commons/dist/src/writers/index.js"(exports2) {
2922
- "use strict";
2923
- var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
2924
- if (k2 === void 0)
2925
- k2 = k;
2926
- var desc = Object.getOwnPropertyDescriptor(m, k);
2927
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
2928
- desc = { enumerable: true, get: function() {
2929
- return m[k];
2930
- } };
2931
- }
2932
- Object.defineProperty(o, k2, desc);
2933
- } : function(o, m, k, k2) {
2934
- if (k2 === void 0)
2935
- k2 = k;
2936
- o[k2] = m[k];
2937
- });
2938
- var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
2939
- for (var p in m)
2940
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
2941
- __createBinding(exports3, m, p);
2942
- };
2943
- Object.defineProperty(exports2, "__esModule", { value: true });
2944
- exports2.MessageAllureWriter = exports2.InMemoryAllureWriter = exports2.FileSystemAllureWriter = void 0;
2945
- var FileSystemAllureWriter_1 = require_FileSystemAllureWriter();
2946
- Object.defineProperty(exports2, "FileSystemAllureWriter", { enumerable: true, get: function() {
2947
- return FileSystemAllureWriter_1.FileSystemAllureWriter;
2948
- } });
2949
- var InMemoryAllureWriter_1 = require_InMemoryAllureWriter();
2950
- Object.defineProperty(exports2, "InMemoryAllureWriter", { enumerable: true, get: function() {
2951
- return InMemoryAllureWriter_1.InMemoryAllureWriter;
2952
- } });
2953
- var MessageAllureWriter_1 = require_MessageAllureWriter();
2954
- Object.defineProperty(exports2, "MessageAllureWriter", { enumerable: true, get: function() {
2955
- return MessageAllureWriter_1.MessageAllureWriter;
2956
- } });
2957
- __exportStar(require_utils2(), exports2);
2958
- }
2959
- });
2960
-
2961
- // ../allure-js-commons/dist/src/AllureRuntime.js
2962
- var require_AllureRuntime = __commonJS({
2963
- "../allure-js-commons/dist/src/AllureRuntime.js"(exports2) {
2964
- "use strict";
2965
- Object.defineProperty(exports2, "__esModule", { value: true });
2966
- exports2.AllureRuntime = void 0;
2967
- var crypto_1 = require("crypto");
2968
- var AllureGroup_1 = require_AllureGroup();
2969
- var writers_1 = require_writers();
2970
- var buildAttachmentFileName = (options) => {
2971
- if (typeof options === "string") {
2972
- options = { contentType: options };
2973
- }
2974
- const extension = (0, writers_1.typeToExtension)(options);
2975
- return `${(0, crypto_1.randomUUID)()}-attachment${extension}`;
2976
- };
2977
- var AllureRuntime2 = class {
2978
- constructor(config) {
2979
- this.config = config;
2980
- this.writer = config.writer || new writers_1.FileSystemAllureWriter(config);
2981
- }
2982
- startGroup(name) {
2983
- const allureContainer = new AllureGroup_1.AllureGroup(this);
2984
- allureContainer.name = name || "Unnamed";
2985
- return allureContainer;
2986
- }
2987
- writeResult(result) {
2988
- const modifiedResult = this.config.testMapper !== void 0 ? this.config.testMapper(result) : result;
2989
- if (modifiedResult != null) {
2990
- this.writer.writeResult(modifiedResult);
2991
- }
2992
- }
2993
- writeGroup(result) {
2994
- this.writer.writeGroup(result);
2995
- }
2996
- writeAttachment(content, options, encoding) {
2997
- const fileName = buildAttachmentFileName(options);
2998
- this.writer.writeAttachment(fileName, content, encoding);
2999
- return fileName;
3000
- }
3001
- writeAttachmentFromPath(fromPath, options) {
3002
- const fileName = buildAttachmentFileName(options);
3003
- this.writer.writeAttachmentFromPath(fromPath, fileName);
3004
- return fileName;
3005
- }
3006
- writeEnvironmentInfo(info) {
3007
- this.writer.writeEnvironmentInfo(info || process.env);
3008
- }
3009
- writeCategoriesDefinitions(categories) {
3010
- const serializedCategories = categories.map((c) => {
3011
- if (c.messageRegex instanceof RegExp) {
3012
- c.messageRegex = c.messageRegex.source;
3013
- }
3014
- if (c.traceRegex instanceof RegExp) {
3015
- c.traceRegex = c.traceRegex.source;
3016
- }
3017
- return c;
3018
- });
3019
- this.writer.writeCategoriesDefinitions(serializedCategories);
3020
- }
3021
- };
3022
- exports2.AllureRuntime = AllureRuntime2;
3023
- }
3024
- });
3025
-
3026
- // ../allure-js-commons/dist/src/Allure.js
3027
- var require_Allure = __commonJS({
3028
- "../allure-js-commons/dist/src/Allure.js"(exports2) {
3029
- "use strict";
3030
- Object.defineProperty(exports2, "__esModule", { value: true });
3031
- exports2.Allure = void 0;
3032
- var model_1 = require_model();
3033
- var Allure = class {
3034
- constructor(runtime) {
3035
- this.runtime = runtime;
3036
- }
3037
- testCaseId(id) {
3038
- this.currentTest.testCaseId = id;
3039
- }
3040
- historyId(id) {
3041
- this.currentTest.historyId = id;
3042
- }
3043
- epic(epic) {
3044
- this.label(model_1.LabelName.EPIC, epic);
3045
- }
3046
- feature(feature) {
3047
- this.label(model_1.LabelName.FEATURE, feature);
3048
- }
3049
- story(story) {
3050
- this.label(model_1.LabelName.STORY, story);
3051
- }
3052
- suite(name) {
3053
- this.label(model_1.LabelName.SUITE, name);
3054
- }
3055
- parentSuite(name) {
3056
- this.label(model_1.LabelName.PARENT_SUITE, name);
3057
- }
3058
- subSuite(name) {
3059
- this.label(model_1.LabelName.SUB_SUITE, name);
3060
- }
3061
- label(name, value) {
3062
- this.currentTest.addLabel(name, value);
3063
- }
3064
- parameter(name, value, options) {
3065
- this.currentExecutable.parameter(name, value, options);
3066
- }
3067
- link(url, name, type) {
3068
- this.currentTest.addLink(url, name, type);
3069
- }
3070
- issue(name, url) {
3071
- this.link(url, name, model_1.LinkType.ISSUE);
3072
- }
3073
- tms(name, url) {
3074
- this.link(url, name, model_1.LinkType.TMS);
3075
- }
3076
- description(markdown) {
3077
- this.currentExecutable.description = markdown;
3078
- }
3079
- descriptionHtml(html) {
3080
- this.currentExecutable.descriptionHtml = html;
3081
- }
3082
- owner(owner) {
3083
- this.label(model_1.LabelName.OWNER, owner);
3084
- }
3085
- severity(severity) {
3086
- this.label(model_1.LabelName.SEVERITY, severity);
3087
- }
3088
- layer(layer) {
3089
- this.label(model_1.LabelName.LAYER, layer);
3090
- }
3091
- id(allureId) {
3092
- this.label(model_1.LabelName.ALLURE_ID, allureId);
3093
- }
3094
- tag(tag) {
3095
- this.label(model_1.LabelName.TAG, tag);
3096
- }
3097
- writeEnvironmentInfo(info) {
3098
- this.runtime.writeEnvironmentInfo(info);
3099
- }
3100
- writeCategoriesDefinitions(categories) {
3101
- this.runtime.writeCategoriesDefinitions(categories);
3102
- }
3103
- };
3104
- exports2.Allure = Allure;
3105
- }
3106
- });
3107
-
3108
- // ../allure-js-commons/dist/src/testplan.js
3109
- var require_testplan = __commonJS({
3110
- "../allure-js-commons/dist/src/testplan.js"(exports2) {
3111
- "use strict";
3112
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
3113
- return mod && mod.__esModule ? mod : { "default": mod };
3114
- };
3115
- Object.defineProperty(exports2, "__esModule", { value: true });
3116
- exports2.parseTestPlan = void 0;
3117
- var fs_1 = __importDefault(require("fs"));
3118
- var parseTestPlan = () => {
3119
- const testPlanPath = process.env.ALLURE_TESTPLAN_PATH;
3120
- if (!testPlanPath) {
3121
- return void 0;
3122
- }
3123
- try {
3124
- const file = fs_1.default.readFileSync(testPlanPath, "utf8");
3125
- const testPlan = JSON.parse(file);
3126
- if ((testPlan.tests || []).length === 0) {
3127
- return void 0;
3128
- }
3129
- return testPlan;
3130
- } catch (e) {
3131
- return void 0;
3132
- }
3133
- };
3134
- exports2.parseTestPlan = parseTestPlan;
3135
- }
3136
- });
3137
-
3138
- // ../allure-js-commons/dist/index.js
3139
- var require_dist = __commonJS({
3140
- "../allure-js-commons/dist/index.js"(exports2) {
3141
- "use strict";
3142
- Object.defineProperty(exports2, "__esModule", { value: true });
3143
- exports2.parseTestPlan = exports2.extractMetadataFromString = exports2.stripAscii = exports2.serialize = exports2.readImageAsBase64 = exports2.md5 = exports2.isAnyStepFailed = exports2.getSuitesLabels = exports2.getStatusFromError = exports2.getLabelsFromEnv = exports2.escapeRegExp = exports2.allureReportFolder = exports2.allureLabelRegexpGlobal = exports2.allureLabelRegexp = exports2.allureIdRegexpGlobal = exports2.allureIdRegexp = exports2.LinkType = exports2.Status = exports2.Stage = exports2.Severity = exports2.LabelName = exports2.ContentType = exports2.AllureCommandStepExecutable = exports2.Allure = exports2.isPromise = exports2.AllureStep = exports2.AllureTest = exports2.ExecutableItemWrapper = exports2.AllureGroup = exports2.MessageAllureWriter = exports2.FileSystemAllureWriter = exports2.InMemoryAllureWriter = exports2.typeToExtension = exports2.AllureRuntime = void 0;
3144
- var AllureRuntime_1 = require_AllureRuntime();
3145
- Object.defineProperty(exports2, "AllureRuntime", { enumerable: true, get: function() {
3146
- return AllureRuntime_1.AllureRuntime;
3147
- } });
3148
- var writers_1 = require_writers();
3149
- Object.defineProperty(exports2, "typeToExtension", { enumerable: true, get: function() {
3150
- return writers_1.typeToExtension;
3151
- } });
3152
- Object.defineProperty(exports2, "InMemoryAllureWriter", { enumerable: true, get: function() {
3153
- return writers_1.InMemoryAllureWriter;
3154
- } });
3155
- Object.defineProperty(exports2, "FileSystemAllureWriter", { enumerable: true, get: function() {
3156
- return writers_1.FileSystemAllureWriter;
3157
- } });
3158
- Object.defineProperty(exports2, "MessageAllureWriter", { enumerable: true, get: function() {
3159
- return writers_1.MessageAllureWriter;
3160
- } });
3161
- var AllureGroup_1 = require_AllureGroup();
3162
- Object.defineProperty(exports2, "AllureGroup", { enumerable: true, get: function() {
3163
- return AllureGroup_1.AllureGroup;
3164
- } });
3165
- var ExecutableItemWrapper_1 = require_ExecutableItemWrapper();
3166
- Object.defineProperty(exports2, "ExecutableItemWrapper", { enumerable: true, get: function() {
3167
- return ExecutableItemWrapper_1.ExecutableItemWrapper;
3168
- } });
3169
- var AllureTest_1 = require_AllureTest();
3170
- Object.defineProperty(exports2, "AllureTest", { enumerable: true, get: function() {
3171
- return AllureTest_1.AllureTest;
3172
- } });
3173
- var ExecutableItemWrapper_2 = require_ExecutableItemWrapper();
3174
- Object.defineProperty(exports2, "AllureStep", { enumerable: true, get: function() {
3175
- return ExecutableItemWrapper_2.AllureStep;
3176
- } });
3177
- var isPromise_1 = require_isPromise();
3178
- Object.defineProperty(exports2, "isPromise", { enumerable: true, get: function() {
3179
- return isPromise_1.isPromise;
3180
- } });
3181
- var Allure_1 = require_Allure();
3182
- Object.defineProperty(exports2, "Allure", { enumerable: true, get: function() {
3183
- return Allure_1.Allure;
3184
- } });
3185
- var AllureCommandStep_1 = require_AllureCommandStep();
3186
- Object.defineProperty(exports2, "AllureCommandStepExecutable", { enumerable: true, get: function() {
3187
- return AllureCommandStep_1.AllureCommandStepExecutable;
3188
- } });
3189
- var model_1 = require_model();
3190
- Object.defineProperty(exports2, "ContentType", { enumerable: true, get: function() {
3191
- return model_1.ContentType;
3192
- } });
3193
- Object.defineProperty(exports2, "LabelName", { enumerable: true, get: function() {
3194
- return model_1.LabelName;
3195
- } });
3196
- Object.defineProperty(exports2, "Severity", { enumerable: true, get: function() {
3197
- return model_1.Severity;
3198
- } });
3199
- Object.defineProperty(exports2, "Stage", { enumerable: true, get: function() {
3200
- return model_1.Stage;
3201
- } });
3202
- Object.defineProperty(exports2, "Status", { enumerable: true, get: function() {
3203
- return model_1.Status;
3204
- } });
3205
- Object.defineProperty(exports2, "LinkType", { enumerable: true, get: function() {
3206
- return model_1.LinkType;
3207
- } });
3208
- var utils_1 = require_utils();
3209
- Object.defineProperty(exports2, "allureIdRegexp", { enumerable: true, get: function() {
3210
- return utils_1.allureIdRegexp;
3211
- } });
3212
- Object.defineProperty(exports2, "allureIdRegexpGlobal", { enumerable: true, get: function() {
3213
- return utils_1.allureIdRegexpGlobal;
3214
- } });
3215
- Object.defineProperty(exports2, "allureLabelRegexp", { enumerable: true, get: function() {
3216
- return utils_1.allureLabelRegexp;
3217
- } });
3218
- Object.defineProperty(exports2, "allureLabelRegexpGlobal", { enumerable: true, get: function() {
3219
- return utils_1.allureLabelRegexpGlobal;
3220
- } });
3221
- Object.defineProperty(exports2, "allureReportFolder", { enumerable: true, get: function() {
3222
- return utils_1.allureReportFolder;
3223
- } });
3224
- Object.defineProperty(exports2, "escapeRegExp", { enumerable: true, get: function() {
3225
- return utils_1.escapeRegExp;
3226
- } });
3227
- Object.defineProperty(exports2, "getLabelsFromEnv", { enumerable: true, get: function() {
3228
- return utils_1.getLabelsFromEnv;
3229
- } });
3230
- Object.defineProperty(exports2, "getStatusFromError", { enumerable: true, get: function() {
3231
- return utils_1.getStatusFromError;
3232
- } });
3233
- Object.defineProperty(exports2, "getSuitesLabels", { enumerable: true, get: function() {
3234
- return utils_1.getSuitesLabels;
3235
- } });
3236
- Object.defineProperty(exports2, "isAnyStepFailed", { enumerable: true, get: function() {
3237
- return utils_1.isAnyStepFailed;
3238
- } });
3239
- Object.defineProperty(exports2, "md5", { enumerable: true, get: function() {
3240
- return utils_1.md5;
3241
- } });
3242
- Object.defineProperty(exports2, "readImageAsBase64", { enumerable: true, get: function() {
3243
- return utils_1.readImageAsBase64;
3244
- } });
3245
- Object.defineProperty(exports2, "serialize", { enumerable: true, get: function() {
3246
- return utils_1.serialize;
3247
- } });
3248
- Object.defineProperty(exports2, "stripAscii", { enumerable: true, get: function() {
3249
- return utils_1.stripAscii;
3250
- } });
3251
- Object.defineProperty(exports2, "extractMetadataFromString", { enumerable: true, get: function() {
3252
- return utils_1.extractMetadataFromString;
3253
- } });
3254
- var testplan_1 = require_testplan();
3255
- Object.defineProperty(exports2, "parseTestPlan", { enumerable: true, get: function() {
3256
- return testplan_1.parseTestPlan;
3257
- } });
3258
- }
3259
- });
3260
-
3261
- // src/reporter.ts
3262
- var reporter_exports = {};
3263
- __export(reporter_exports, {
3264
- allureCypress: () => allureCypress
3265
- });
3266
- module.exports = __toCommonJS(reporter_exports);
3267
- var import_node_fs = require("node:fs");
3268
- var import_allure_js_commons = __toESM(require_dist());
3269
- var startAllureTest = (runtime, message) => {
3270
- const suiteLabels = (0, import_allure_js_commons.getSuitesLabels)(message.specPath.slice(0, -1));
3271
- const testTitle = message.specPath[message.specPath.length - 1];
3272
- const titleMetadata = (0, import_allure_js_commons.extractMetadataFromString)(testTitle);
3273
- const currentTest = new import_allure_js_commons.AllureTest(runtime, message.start);
3274
- currentTest.name = titleMetadata.cleanTitle;
3275
- currentTest.fullName = `${message.filename}#${message.specPath.join(" ")}`;
3276
- currentTest.stage = "running" /* RUNNING */;
3277
- currentTest.addLabel("language" /* LANGUAGE */, "javascript");
3278
- currentTest.addLabel("framework" /* FRAMEWORK */, "cypress");
3279
- suiteLabels.forEach((label) => {
3280
- currentTest.addLabel(label.name, label.value);
3281
- });
3282
- titleMetadata.labels.forEach((label) => {
3283
- currentTest.addLabel(label.name, label.value);
3284
- });
3285
- return currentTest;
3286
- };
3287
- var allureCypress = (on, config) => {
3288
- const runtime = new import_allure_js_commons.AllureRuntime({
3289
- resultsDir: config?.resultsDir || "./allure-results"
3290
- });
3291
- const currentSteps = [];
3292
- on("task", {
3293
- allureReportTest: ({ startMessage, endMessage, messages }) => {
3294
- const currentTest = startAllureTest(runtime, startMessage);
3295
- messages.forEach(({ type, payload }) => {
3296
- if (type === "STEP_STARTED" /* STEP_STARTED */) {
3297
- const currentStep = currentSteps[currentSteps.length - 1];
3298
- const newStep = (currentStep || currentTest).startStep(payload.name, payload.start);
3299
- currentSteps.push(newStep);
3300
- return;
3301
- }
3302
- if (type === "STEP_ENDED" /* STEP_ENDED */) {
3303
- const currentStep = currentSteps.pop();
3304
- currentStep.status = payload.status;
3305
- currentStep.statusDetails = payload.statusDetails;
3306
- currentStep.stage = payload.stage;
3307
- currentStep.endStep(payload.stop);
3308
- return;
3309
- }
3310
- if (type === "SCREENSHOT" /* SCREENSHOT */) {
3311
- const currentStep = currentSteps[currentSteps.length - 1];
3312
- const attachmentName = payload.name;
3313
- const screenshotBody = (0, import_node_fs.readFileSync)(payload.path);
3314
- const screenshotName = runtime.writeAttachment(screenshotBody, "image/png");
3315
- (currentStep || currentTest).addAttachment(attachmentName, "image/png", screenshotName);
3316
- return;
3317
- }
3318
- if (type === "METADATA" /* METADATA */) {
3319
- const { parameter, links, attachments, ...metadata } = payload;
3320
- const currentStep = currentSteps[currentSteps.length - 1];
3321
- parameter?.forEach(({ name, value, excluded, mode }) => {
3322
- currentTest.parameter(name, value, {
3323
- excluded,
3324
- mode
3325
- });
3326
- });
3327
- attachments?.forEach((attachment) => {
3328
- const attachmentName = runtime.writeAttachment(attachment.content, attachment.type, attachment.encoding);
3329
- (currentStep || currentTest).addAttachment(attachment.name, attachment.type, attachmentName);
3330
- });
3331
- if (!config?.links?.length || !links?.length) {
3332
- currentTest.applyMetadata(metadata);
3333
- return;
3334
- }
3335
- const formattedLinks = links?.map((link) => {
3336
- const matcher = config?.links?.find?.((item) => item.type === link.type);
3337
- if (!matcher || link.url.startsWith("http")) {
3338
- return link;
3339
- }
3340
- const url = matcher.urlTemplate.replace("%s", link.url);
3341
- const name = link.name || link.url;
3342
- return {
3343
- ...link,
3344
- name,
3345
- url
3346
- };
3347
- });
3348
- currentTest.applyMetadata({
3349
- ...metadata,
3350
- links: formattedLinks
3351
- });
3352
- return;
3353
- }
3354
- });
3355
- currentTest.stage = endMessage.stage;
3356
- currentTest.status = endMessage.status;
3357
- currentTest.statusDetails = endMessage.statusDetails;
3358
- currentTest.calculateHistoryId();
3359
- currentTest.endTest(endMessage.stop);
3360
- return null;
3361
- }
3362
- });
3363
- };
3364
- // Annotate the CommonJS export names for ESM import in node:
3365
- 0 && (module.exports = {
3366
- allureCypress
3367
- });
3368
- //# sourceMappingURL=reporter.js.map