allure-cypress 3.13.0 → 3.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/README.md +15 -1
- package/dist/cjs/browser/events/cypress.js +17 -5
- package/dist/cjs/browser/events/cypress.js.map +1 -1
- package/dist/cjs/browser/lifecycle.js +3 -1
- package/dist/cjs/browser/lifecycle.js.map +1 -1
- package/dist/cjs/browser/runtime.js +83 -14
- package/dist/cjs/browser/runtime.js.map +1 -1
- package/dist/cjs/browser/serialize.js +15 -17
- package/dist/cjs/browser/serialize.js.map +1 -1
- package/dist/cjs/browser/steps.js +4 -2
- package/dist/cjs/browser/steps.js.map +1 -1
- package/dist/cjs/browser/utils.js +3 -1
- package/dist/cjs/browser/utils.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/reporter.js +97 -56
- package/dist/cjs/reporter.js.map +1 -1
- package/dist/esm/browser/events/cypress.js +17 -5
- package/dist/esm/browser/events/cypress.js.map +1 -1
- package/dist/esm/browser/lifecycle.js +2 -1
- package/dist/esm/browser/lifecycle.js.map +1 -1
- package/dist/esm/browser/runtime.js +83 -15
- package/dist/esm/browser/runtime.js.map +1 -1
- package/dist/esm/browser/serialize.js +15 -17
- package/dist/esm/browser/serialize.js.map +1 -1
- package/dist/esm/browser/steps.js +3 -2
- package/dist/esm/browser/steps.js.map +1 -1
- package/dist/esm/browser/utils.js +2 -1
- package/dist/esm/browser/utils.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +4 -4
- package/dist/esm/reporter.js +98 -57
- package/dist/esm/reporter.js.map +1 -1
- package/dist/types/browser/runtime.d.ts +7 -2
- package/dist/types/browser/steps.d.ts +1 -1
- package/dist/types/reporter.d.ts +5 -0
- package/package.json +4 -7
package/dist/esm/reporter.js
CHANGED
|
@@ -4,7 +4,8 @@ var _excluded = ["fullNameSuffix"],
|
|
|
4
4
|
_excluded4 = ["id"],
|
|
5
5
|
_excluded5 = ["id", "stop"],
|
|
6
6
|
_excluded6 = ["id"],
|
|
7
|
-
_excluded7 = ["
|
|
7
|
+
_excluded7 = ["path", "name"],
|
|
8
|
+
_excluded8 = ["resultsDir", "videoOnFailOnly"];
|
|
8
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
11
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
@@ -17,9 +18,11 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
17
18
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
18
19
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
19
20
|
import { ContentType, Stage, Status } from "allure-js-commons";
|
|
20
|
-
import {
|
|
21
|
+
import { toGlobalErrorMessage } from "allure-js-commons/sdk";
|
|
22
|
+
import { ReporterRuntime, createDefaultWriter, getDefaultSuiteLabels, getEnvironmentLabels, getFallbackTestCaseIdLabel, getFrameworkLabel, getHostLabel, getLanguageLabel, getPackageLabel, getPosixPath, getProjectName, getProjectRoot, getRelativePath, getThreadLabel, md5, parseTestPlan } from "allure-js-commons/sdk/reporter";
|
|
21
23
|
import { DEFAULT_RUNTIME_CONFIG, last } from "./utils.js";
|
|
22
24
|
var _fixtureNames = /*#__PURE__*/new WeakMap();
|
|
25
|
+
var _screenshotReferencesByPath = /*#__PURE__*/new WeakMap();
|
|
23
26
|
var _endAllSpecs = /*#__PURE__*/new WeakMap();
|
|
24
27
|
var _applyAllureCypressMessages = /*#__PURE__*/new WeakMap();
|
|
25
28
|
var _startRun = /*#__PURE__*/new WeakMap();
|
|
@@ -37,7 +40,6 @@ var _skipTest = /*#__PURE__*/new WeakMap();
|
|
|
37
40
|
var _addSkippedTest = /*#__PURE__*/new WeakMap();
|
|
38
41
|
var _stopTest = /*#__PURE__*/new WeakMap();
|
|
39
42
|
var _stopExistingTestResult = /*#__PURE__*/new WeakMap();
|
|
40
|
-
var _fixTestStepStops = /*#__PURE__*/new WeakMap();
|
|
41
43
|
var _fixFixtureStepStops = /*#__PURE__*/new WeakMap();
|
|
42
44
|
var _fixStepStops = /*#__PURE__*/new WeakMap();
|
|
43
45
|
var _startStep = /*#__PURE__*/new WeakMap();
|
|
@@ -55,6 +57,7 @@ export class AllureCypress {
|
|
|
55
57
|
_defineProperty(this, "allureRuntime", void 0);
|
|
56
58
|
_defineProperty(this, "specContextByAbsolutePath", new Map());
|
|
57
59
|
_classPrivateFieldInitSpec(this, _fixtureNames, new Map());
|
|
60
|
+
_classPrivateFieldInitSpec(this, _screenshotReferencesByPath, new Map());
|
|
58
61
|
_defineProperty(this, "videoOnFailOnly", false);
|
|
59
62
|
_defineProperty(this, "attachToCypress", on => {
|
|
60
63
|
on("task", {
|
|
@@ -72,6 +75,7 @@ export class AllureCypress {
|
|
|
72
75
|
return null;
|
|
73
76
|
}
|
|
74
77
|
});
|
|
78
|
+
on("after:screenshot", this.onAfterScreenshot);
|
|
75
79
|
|
|
76
80
|
// Emits the remaining fixtures and writes the video of the spec.
|
|
77
81
|
// In interactive mode it's invoked through the `reportFinalAllureCypressSpecMessages` task.
|
|
@@ -81,6 +85,24 @@ export class AllureCypress {
|
|
|
81
85
|
// `experimentalInteractiveRunEvents` is set.
|
|
82
86
|
on("after:run", this.onAfterRun);
|
|
83
87
|
});
|
|
88
|
+
/**
|
|
89
|
+
* Forward `after:screenshot` here if you define your own handler. Pass the
|
|
90
|
+
* final screenshot path after any changes made by your handler.
|
|
91
|
+
*/
|
|
92
|
+
_defineProperty(this, "onAfterScreenshot", _ref => {
|
|
93
|
+
var _classPrivateFieldGet2;
|
|
94
|
+
var {
|
|
95
|
+
path
|
|
96
|
+
} = _ref;
|
|
97
|
+
// Snapshot plugins can move or delete the file before the browser flushes
|
|
98
|
+
// its attachment message. Preserve each capture, including overwritten paths.
|
|
99
|
+
var reference = this.allureRuntime.emitAttachment(path, {
|
|
100
|
+
contentType: ContentType.PNG
|
|
101
|
+
});
|
|
102
|
+
var references = (_classPrivateFieldGet2 = _classPrivateFieldGet(_screenshotReferencesByPath, this).get(path)) !== null && _classPrivateFieldGet2 !== void 0 ? _classPrivateFieldGet2 : [];
|
|
103
|
+
references.push(reference);
|
|
104
|
+
_classPrivateFieldGet(_screenshotReferencesByPath, this).set(path, references);
|
|
105
|
+
});
|
|
84
106
|
/**
|
|
85
107
|
* Forward the `after:spec` event into Allure Cypress using this function if
|
|
86
108
|
* you need to define your own handler or combine Allure Cypress with other
|
|
@@ -145,17 +167,18 @@ export class AllureCypress {
|
|
|
145
167
|
_classPrivateFieldGet(_emitRemainingScopes, this).call(this, specContext);
|
|
146
168
|
this.specContextByAbsolutePath.delete(specAbsolutePath);
|
|
147
169
|
}
|
|
170
|
+
_classPrivateFieldGet(_screenshotReferencesByPath, this).clear();
|
|
148
171
|
});
|
|
149
172
|
_classPrivateFieldInitSpec(this, _endAllSpecs, () => {
|
|
150
173
|
for (var specAbsolutePath of this.specContextByAbsolutePath.keys()) {
|
|
151
174
|
this.endSpec(specAbsolutePath);
|
|
152
175
|
}
|
|
153
176
|
});
|
|
154
|
-
_classPrivateFieldInitSpec(this, _applyAllureCypressMessages,
|
|
177
|
+
_classPrivateFieldInitSpec(this, _applyAllureCypressMessages, _ref2 => {
|
|
155
178
|
var {
|
|
156
179
|
messages,
|
|
157
180
|
absolutePath
|
|
158
|
-
} =
|
|
181
|
+
} = _ref2;
|
|
159
182
|
messages.forEach(message => {
|
|
160
183
|
if (message.type === "cypress_run_start") {
|
|
161
184
|
_classPrivateFieldGet(_startRun, this).call(this, absolutePath);
|
|
@@ -216,14 +239,14 @@ export class AllureCypress {
|
|
|
216
239
|
_classPrivateFieldGet(_initializeSpecContext, this).call(this, absolutePath);
|
|
217
240
|
}
|
|
218
241
|
});
|
|
219
|
-
_classPrivateFieldInitSpec(this, _startSuite, (context,
|
|
242
|
+
_classPrivateFieldInitSpec(this, _startSuite, (context, _ref3) => {
|
|
220
243
|
var {
|
|
221
244
|
data: {
|
|
222
245
|
id,
|
|
223
246
|
name,
|
|
224
247
|
root
|
|
225
248
|
}
|
|
226
|
-
} =
|
|
249
|
+
} = _ref3;
|
|
227
250
|
_classPrivateFieldGet(_pushNewSuiteScope, this).call(this, context, id);
|
|
228
251
|
if (!root) {
|
|
229
252
|
_classPrivateFieldGet(_emitPreviousTestScope, this).call(this, context);
|
|
@@ -237,12 +260,12 @@ export class AllureCypress {
|
|
|
237
260
|
context.suiteScopeToId.set(scope, suiteId);
|
|
238
261
|
return scope;
|
|
239
262
|
});
|
|
240
|
-
_classPrivateFieldInitSpec(this, _stopSuite, (context,
|
|
263
|
+
_classPrivateFieldInitSpec(this, _stopSuite, (context, _ref4) => {
|
|
241
264
|
var {
|
|
242
265
|
data: {
|
|
243
266
|
root
|
|
244
267
|
}
|
|
245
|
-
} =
|
|
268
|
+
} = _ref4;
|
|
246
269
|
_classPrivateFieldGet(_emitPreviousTestScope, this).call(this, context);
|
|
247
270
|
if (!root) {
|
|
248
271
|
context.suiteNames.pop();
|
|
@@ -260,7 +283,7 @@ export class AllureCypress {
|
|
|
260
283
|
this.allureRuntime.writeScope(scope);
|
|
261
284
|
}
|
|
262
285
|
});
|
|
263
|
-
_classPrivateFieldInitSpec(this, _startHook, (context,
|
|
286
|
+
_classPrivateFieldInitSpec(this, _startHook, (context, _ref5) => {
|
|
264
287
|
var {
|
|
265
288
|
data: {
|
|
266
289
|
name,
|
|
@@ -268,7 +291,7 @@ export class AllureCypress {
|
|
|
268
291
|
position,
|
|
269
292
|
start
|
|
270
293
|
}
|
|
271
|
-
} =
|
|
294
|
+
} = _ref5;
|
|
272
295
|
var isEach = scopeType === "each";
|
|
273
296
|
var isAfterEach = position === "after" && isEach;
|
|
274
297
|
if (!isAfterEach) {
|
|
@@ -286,12 +309,12 @@ export class AllureCypress {
|
|
|
286
309
|
}
|
|
287
310
|
}
|
|
288
311
|
});
|
|
289
|
-
_classPrivateFieldInitSpec(this, _stopHook, (context,
|
|
312
|
+
_classPrivateFieldInitSpec(this, _stopHook, (context, _ref6) => {
|
|
290
313
|
var {
|
|
291
314
|
data: {
|
|
292
315
|
duration
|
|
293
316
|
}
|
|
294
|
-
} =
|
|
317
|
+
} = _ref6;
|
|
295
318
|
var fixtureUuid = context.fixture;
|
|
296
319
|
if (fixtureUuid) {
|
|
297
320
|
this.allureRuntime.updateFixture(fixtureUuid, fixture => {
|
|
@@ -306,23 +329,23 @@ export class AllureCypress {
|
|
|
306
329
|
context.fixture = undefined;
|
|
307
330
|
}
|
|
308
331
|
});
|
|
309
|
-
_classPrivateFieldInitSpec(this, _startTest, (context,
|
|
332
|
+
_classPrivateFieldInitSpec(this, _startTest, (context, _ref7) => {
|
|
310
333
|
var {
|
|
311
334
|
data: {
|
|
312
335
|
fullNameSuffix
|
|
313
336
|
}
|
|
314
|
-
} =
|
|
315
|
-
testResultData = _objectWithoutProperties(
|
|
337
|
+
} = _ref7,
|
|
338
|
+
testResultData = _objectWithoutProperties(_ref7.data, _excluded);
|
|
316
339
|
_classPrivateFieldGet(_emitPreviousTestScope, this).call(this, context);
|
|
317
340
|
var testScope = this.allureRuntime.startScope();
|
|
318
341
|
context.testScope = testScope;
|
|
319
342
|
context.test = _classPrivateFieldGet(_addNewTestResult, this).call(this, context, fullNameSuffix, testResultData, [context.videoScope, ...context.suiteScopes, testScope]);
|
|
320
343
|
});
|
|
321
|
-
_classPrivateFieldInitSpec(this, _addNewTestResult, (context, fullNameSuffix,
|
|
344
|
+
_classPrivateFieldInitSpec(this, _addNewTestResult, (context, fullNameSuffix, _ref8, scopes) => {
|
|
322
345
|
var {
|
|
323
346
|
labels: metadataLabels = []
|
|
324
|
-
} =
|
|
325
|
-
otherTestData = _objectWithoutProperties(
|
|
347
|
+
} = _ref8,
|
|
348
|
+
otherTestData = _objectWithoutProperties(_ref8, _excluded2);
|
|
326
349
|
var projectName = getProjectName();
|
|
327
350
|
var posixPath = getPosixPath(context.specPath);
|
|
328
351
|
var fullNameBase = projectName ? "".concat(projectName, ":").concat(posixPath) : posixPath;
|
|
@@ -330,27 +353,31 @@ export class AllureCypress {
|
|
|
330
353
|
var titlePath = posixPath.split("/").concat(context.suiteNames);
|
|
331
354
|
return this.allureRuntime.startTest(_objectSpread({
|
|
332
355
|
stage: Stage.RUNNING,
|
|
333
|
-
labels: [getLanguageLabel(), getFrameworkLabel("cypress"), ...
|
|
356
|
+
labels: [getLanguageLabel(), getFrameworkLabel("cypress"), ...metadataLabels, ...getEnvironmentLabels(), getHostLabel(), getThreadLabel(), getPackageLabel(context.specPath), getFallbackTestCaseIdLabel(md5(legacyFullName))],
|
|
334
357
|
fullName: "".concat(fullNameBase, "#").concat(fullNameSuffix),
|
|
335
358
|
titlePath: projectName ? [projectName, ...titlePath] : titlePath
|
|
336
359
|
}, otherTestData), scopes);
|
|
337
360
|
});
|
|
338
|
-
_classPrivateFieldInitSpec(this, _failHookAndTest, (context,
|
|
361
|
+
_classPrivateFieldInitSpec(this, _failHookAndTest, (context, _ref9) => {
|
|
339
362
|
var {
|
|
340
363
|
data: {
|
|
341
364
|
status,
|
|
342
365
|
statusDetails
|
|
343
366
|
}
|
|
344
|
-
} =
|
|
367
|
+
} = _ref9;
|
|
345
368
|
var setError = result => Object.assign(result, {
|
|
346
369
|
status,
|
|
347
370
|
statusDetails
|
|
348
371
|
});
|
|
349
372
|
var fixtureUuid = context.fixture;
|
|
350
373
|
if (fixtureUuid) {
|
|
351
|
-
var
|
|
374
|
+
var _classPrivateFieldGet3;
|
|
352
375
|
this.allureRuntime.updateFixture(fixtureUuid, setError);
|
|
353
|
-
this.allureRuntime.applyGlobalRuntimeMessages([toGlobalErrorMessage(
|
|
376
|
+
this.allureRuntime.applyGlobalRuntimeMessages([toGlobalErrorMessage({
|
|
377
|
+
name: (_classPrivateFieldGet3 = _classPrivateFieldGet(_fixtureNames, this).get(fixtureUuid)) !== null && _classPrivateFieldGet3 !== void 0 ? _classPrivateFieldGet3 : "hook",
|
|
378
|
+
details: statusDetails,
|
|
379
|
+
status
|
|
380
|
+
})]);
|
|
354
381
|
}
|
|
355
382
|
var testUuid = context.test;
|
|
356
383
|
if (testUuid) {
|
|
@@ -366,12 +393,12 @@ export class AllureCypress {
|
|
|
366
393
|
});
|
|
367
394
|
}
|
|
368
395
|
});
|
|
369
|
-
_classPrivateFieldInitSpec(this, _skipTest, (context,
|
|
396
|
+
_classPrivateFieldInitSpec(this, _skipTest, (context, _ref0) => {
|
|
370
397
|
var {
|
|
371
398
|
data: {
|
|
372
399
|
statusDetails
|
|
373
400
|
}
|
|
374
|
-
} =
|
|
401
|
+
} = _ref0;
|
|
375
402
|
var testUuid = context.test;
|
|
376
403
|
if (testUuid) {
|
|
377
404
|
this.allureRuntime.updateTest(testUuid, testResult => {
|
|
@@ -382,7 +409,7 @@ export class AllureCypress {
|
|
|
382
409
|
});
|
|
383
410
|
}
|
|
384
411
|
});
|
|
385
|
-
_classPrivateFieldInitSpec(this, _addSkippedTest, (context,
|
|
412
|
+
_classPrivateFieldInitSpec(this, _addSkippedTest, (context, _ref1) => {
|
|
386
413
|
var {
|
|
387
414
|
data: {
|
|
388
415
|
fullNameSuffix,
|
|
@@ -390,8 +417,8 @@ export class AllureCypress {
|
|
|
390
417
|
duration,
|
|
391
418
|
retries
|
|
392
419
|
}
|
|
393
|
-
} =
|
|
394
|
-
testResultData = _objectWithoutProperties(
|
|
420
|
+
} = _ref1,
|
|
421
|
+
testResultData = _objectWithoutProperties(_ref1.data, _excluded3);
|
|
395
422
|
// Tests skipped because of a hook error may share all suites of the current context
|
|
396
423
|
// or just a part thereof (if it's from a sibling suite).
|
|
397
424
|
var scopes = suites.map(s => context.suiteIdToScope.get(s)).filter(s => Boolean(s));
|
|
@@ -399,25 +426,25 @@ export class AllureCypress {
|
|
|
399
426
|
_classPrivateFieldGet(_stopExistingTestResult, this).call(this, testUuid, {
|
|
400
427
|
duration,
|
|
401
428
|
retries
|
|
402
|
-
});
|
|
429
|
+
}, context.suiteNames);
|
|
403
430
|
this.allureRuntime.writeTest(testUuid);
|
|
404
431
|
});
|
|
405
|
-
_classPrivateFieldInitSpec(this, _stopTest, (context,
|
|
432
|
+
_classPrivateFieldInitSpec(this, _stopTest, (context, _ref10) => {
|
|
406
433
|
var {
|
|
407
434
|
data
|
|
408
|
-
} =
|
|
435
|
+
} = _ref10;
|
|
409
436
|
var testUuid = context.test;
|
|
410
437
|
if (testUuid) {
|
|
411
|
-
_classPrivateFieldGet(_stopExistingTestResult, this).call(this, testUuid, data);
|
|
438
|
+
_classPrivateFieldGet(_stopExistingTestResult, this).call(this, testUuid, data, context.suiteNames);
|
|
412
439
|
this.allureRuntime.writeTest(testUuid);
|
|
413
440
|
context.test = undefined;
|
|
414
441
|
}
|
|
415
442
|
});
|
|
416
|
-
_classPrivateFieldInitSpec(this, _stopExistingTestResult, (testUuid,
|
|
443
|
+
_classPrivateFieldInitSpec(this, _stopExistingTestResult, (testUuid, _ref11, suiteNames) => {
|
|
417
444
|
var {
|
|
418
445
|
retries,
|
|
419
446
|
duration
|
|
420
|
-
} =
|
|
447
|
+
} = _ref11;
|
|
421
448
|
this.allureRuntime.updateTest(testUuid, testResult => {
|
|
422
449
|
if (retries > 0) {
|
|
423
450
|
testResult.parameters.push({
|
|
@@ -431,19 +458,20 @@ export class AllureCypress {
|
|
|
431
458
|
this.allureRuntime.stopTest(testUuid, {
|
|
432
459
|
duration
|
|
433
460
|
});
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
461
|
+
// Hook metadata is merged by stopTest, so apply defaults only after it.
|
|
462
|
+
this.allureRuntime.updateTest(testUuid, testResult => {
|
|
463
|
+
testResult.labels.push(...getDefaultSuiteLabels(testResult, suiteNames));
|
|
464
|
+
_classPrivateFieldGet(_fixStepStops, this).call(this, testResult);
|
|
465
|
+
});
|
|
438
466
|
});
|
|
439
467
|
_classPrivateFieldInitSpec(this, _fixFixtureStepStops, fixtureUuid => {
|
|
440
468
|
this.allureRuntime.updateFixture(fixtureUuid, _classPrivateFieldGet(_fixStepStops, this));
|
|
441
469
|
});
|
|
442
|
-
_classPrivateFieldInitSpec(this, _fixStepStops,
|
|
470
|
+
_classPrivateFieldInitSpec(this, _fixStepStops, _ref12 => {
|
|
443
471
|
var {
|
|
444
472
|
stop,
|
|
445
473
|
steps = []
|
|
446
|
-
} =
|
|
474
|
+
} = _ref12;
|
|
447
475
|
if (stop) {
|
|
448
476
|
// In some circumstances, steps becomes dangling and are stopped at the test end/hook end events, which happen
|
|
449
477
|
// chronologically after the test or fixture ends. This leads to the steps' stop time being greater than the one
|
|
@@ -459,11 +487,11 @@ export class AllureCypress {
|
|
|
459
487
|
}
|
|
460
488
|
}
|
|
461
489
|
});
|
|
462
|
-
_classPrivateFieldInitSpec(this, _startStep, (context,
|
|
490
|
+
_classPrivateFieldInitSpec(this, _startStep, (context, _ref13) => {
|
|
463
491
|
var {
|
|
464
492
|
id
|
|
465
|
-
} =
|
|
466
|
-
properties = _objectWithoutProperties(
|
|
493
|
+
} = _ref13,
|
|
494
|
+
properties = _objectWithoutProperties(_ref13, _excluded4);
|
|
467
495
|
var rootUuid = _classPrivateFieldGet(_resolveRootUuid, this).call(this, context);
|
|
468
496
|
if (rootUuid) {
|
|
469
497
|
var stepUuid = this.allureRuntime.startStep(rootUuid, undefined, properties);
|
|
@@ -472,12 +500,12 @@ export class AllureCypress {
|
|
|
472
500
|
}
|
|
473
501
|
}
|
|
474
502
|
});
|
|
475
|
-
_classPrivateFieldInitSpec(this, _stopStep, (context,
|
|
503
|
+
_classPrivateFieldInitSpec(this, _stopStep, (context, _ref14) => {
|
|
476
504
|
var {
|
|
477
505
|
id,
|
|
478
506
|
stop
|
|
479
|
-
} =
|
|
480
|
-
properties = _objectWithoutProperties(
|
|
507
|
+
} = _ref14,
|
|
508
|
+
properties = _objectWithoutProperties(_ref14, _excluded5);
|
|
481
509
|
var stepUuid = context.stepsByFrontEndId.get(id);
|
|
482
510
|
if (stepUuid) {
|
|
483
511
|
this.allureRuntime.updateStep(stepUuid, r => {
|
|
@@ -488,11 +516,11 @@ export class AllureCypress {
|
|
|
488
516
|
});
|
|
489
517
|
}
|
|
490
518
|
});
|
|
491
|
-
_classPrivateFieldInitSpec(this, _finalizeStep, (context,
|
|
519
|
+
_classPrivateFieldInitSpec(this, _finalizeStep, (context, _ref15) => {
|
|
492
520
|
var {
|
|
493
521
|
id
|
|
494
|
-
} =
|
|
495
|
-
properties = _objectWithoutProperties(
|
|
522
|
+
} = _ref15,
|
|
523
|
+
properties = _objectWithoutProperties(_ref15, _excluded6);
|
|
496
524
|
var stepUuid = context.stepsByFrontEndId.get(id);
|
|
497
525
|
if (stepUuid) {
|
|
498
526
|
this.allureRuntime.updateStep(stepUuid, r => {
|
|
@@ -503,6 +531,25 @@ export class AllureCypress {
|
|
|
503
531
|
});
|
|
504
532
|
_classPrivateFieldInitSpec(this, _applyRuntimeApiMessages, (context, message) => {
|
|
505
533
|
var rootUuid = _classPrivateFieldGet(_resolveRootUuid, this).call(this, context);
|
|
534
|
+
if (message.type === "attachment_path") {
|
|
535
|
+
var _message$data = message.data,
|
|
536
|
+
{
|
|
537
|
+
path,
|
|
538
|
+
name
|
|
539
|
+
} = _message$data,
|
|
540
|
+
options = _objectWithoutProperties(_message$data, _excluded7);
|
|
541
|
+
var references = _classPrivateFieldGet(_screenshotReferencesByPath, this).get(path);
|
|
542
|
+
var reference = references === null || references === void 0 ? void 0 : references.shift();
|
|
543
|
+
if (reference) {
|
|
544
|
+
if (!(references !== null && references !== void 0 && references.length)) {
|
|
545
|
+
_classPrivateFieldGet(_screenshotReferencesByPath, this).delete(path);
|
|
546
|
+
}
|
|
547
|
+
if (rootUuid) {
|
|
548
|
+
this.allureRuntime.writeAttachment(rootUuid, undefined, name, reference, options);
|
|
549
|
+
}
|
|
550
|
+
return;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
506
553
|
if (rootUuid) {
|
|
507
554
|
this.allureRuntime.applyRuntimeMessages(rootUuid, [message]);
|
|
508
555
|
} else {
|
|
@@ -576,7 +623,7 @@ export class AllureCypress {
|
|
|
576
623
|
resultsDir,
|
|
577
624
|
videoOnFailOnly = false
|
|
578
625
|
} = config,
|
|
579
|
-
rest = _objectWithoutProperties(config,
|
|
626
|
+
rest = _objectWithoutProperties(config, _excluded8);
|
|
580
627
|
this.videoOnFailOnly = videoOnFailOnly;
|
|
581
628
|
this.allureRuntime = new ReporterRuntime(_objectSpread({
|
|
582
629
|
writer: createDefaultWriter({
|
|
@@ -659,10 +706,4 @@ export var allureCypress = (on, cypressConfig, allureConfig) => {
|
|
|
659
706
|
}
|
|
660
707
|
return allureCypressReporter;
|
|
661
708
|
};
|
|
662
|
-
var toGlobalErrorMessage = (name, details) => ({
|
|
663
|
-
type: "global_error",
|
|
664
|
-
data: _objectSpread(_objectSpread({}, details), {}, {
|
|
665
|
-
message: details.message ? "".concat(name, " failed: ").concat(details.message) : "".concat(name, " failed")
|
|
666
|
-
})
|
|
667
|
-
});
|
|
668
709
|
//# sourceMappingURL=reporter.js.map
|
package/dist/esm/reporter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.js","names":["ContentType","Stage","Status","ReporterRuntime","createDefaultWriter","getEnvironmentLabels","getFallbackTestCaseIdLabel","getFrameworkLabel","getHostLabel","getLanguageLabel","getPackageLabel","getPosixPath","getProjectName","getProjectRoot","getRelativePath","getSuiteLabels","getThreadLabel","md5","parseTestPlan","DEFAULT_RUNTIME_CONFIG","last","_fixtureNames","WeakMap","_endAllSpecs","_applyAllureCypressMessages","_startRun","_startSuite","_pushNewSuiteScope","_stopSuite","_writeLastSuiteScope","_startHook","_stopHook","_startTest","_addNewTestResult","_failHookAndTest","_passTest","_skipTest","_addSkippedTest","_stopTest","_stopExistingTestResult","_fixTestStepStops","_fixFixtureStepStops","_fixStepStops","_startStep","_stopStep","_finalizeStep","_applyRuntimeApiMessages","_emitPreviousTestScope","_resolveRootUuid","_attachSpecVideo","_emitRemainingScopes","_initializeSpecContext","AllureCypress","constructor","config","arguments","length","undefined","_defineProperty","Map","_classPrivateFieldInitSpec","on","reportAllureCypressSpecMessages","args","_classPrivateFieldGet","call","reportFinalAllureCypressSpecMessages","isInteractive","endSpec","absolutePath","onAfterSpec","onAfterRun","spec","results","_results$video","absolute","video","endRun","allureRuntime","writeEnvironmentInfo","writeCategoriesDefinitions","specAbsolutePath","cypressVideoPath","specContext","specContextByAbsolutePath","get","delete","keys","_ref","messages","forEach","message","type","context","data","has","_ref2","id","name","root","suiteNames","push","suiteId","scope","startScope","suiteScopes","suiteIdToScope","set","suiteScopeToId","_ref3","pop","writeScope","_ref4","scopeType","position","start","isEach","isAfterEach","testScope","fixture","startFixture","status","_ref5","duration","fixtureUuid","updateFixture","_fixture$status","PASSED","stopFixture","_ref6","fullNameSuffix","testResultData","_objectWithoutProperties","_excluded","test","videoScope","_ref7","scopes","labels","metadataLabels","otherTestData","_excluded2","projectName","posixPath","specPath","fullNameBase","concat","legacyFullName","titlePath","split","startTest","_objectSpread","stage","RUNNING","fullName","_ref8","statusDetails","setError","result","Object","assign","_classPrivateFieldGet2","applyGlobalRuntimeMessages","toGlobalErrorMessage","testUuid","updateTest","failed","testResult","_ref9","SKIPPED","_ref0","suites","retries","_excluded3","map","s","filter","Boolean","writeTest","_ref1","_ref10","parameters","value","toString","excluded","FINISHED","stopTest","_ref11","stop","steps","step","at","_ref12","properties","_excluded4","rootUuid","stepUuid","startStep","stepsByFrontEndId","_ref13","_excluded5","updateStep","r","stopStep","_ref14","_excluded6","applyRuntimeMessages","_context$fixture","shouldVideoBeAttached","videoOnFailOnly","writeAttachment","contentType","MP4","resultsDir","rest","_excluded7","writer","createRuntimeState","allureConfig","getRuntimeConfigDefaults","initialized","testPlan","projectDir","stepStack","stepsToFinalize","nextApiStepId","stepsFromCommands","enabled","maxArgumentLength","maxArgumentDepth","initializeRuntimeState","cypressConfig","allureState","expose","allure","env","allureCypress","hasCypressConfig","allureCypressReporter","attachToCypress","details"],"sources":["../../src/reporter.ts"],"sourcesContent":["import { ContentType, Stage, Status } from \"allure-js-commons\";\nimport type { FixtureResult, StatusDetails, TestResult } from \"allure-js-commons\";\nimport type { RuntimeMessage } from \"allure-js-commons/sdk\";\nimport {\n ReporterRuntime,\n createDefaultWriter,\n getEnvironmentLabels,\n getFallbackTestCaseIdLabel,\n getFrameworkLabel,\n getHostLabel,\n getLanguageLabel,\n getPackageLabel,\n getPosixPath,\n getProjectName,\n getProjectRoot,\n getRelativePath,\n getSuiteLabels,\n getThreadLabel,\n md5,\n parseTestPlan,\n} from \"allure-js-commons/sdk/reporter\";\nimport type Cypress from \"cypress\";\n\nimport type {\n AllureCypressConfig,\n AllureCypressTaskArgs,\n AllureSpecState,\n CypressFailMessage,\n CypressHookEndMessage,\n CypressHookStartMessage,\n CypressSkippedTestMessage,\n CypressStepFinalizeMessage,\n CypressStepStartMessage,\n CypressStepStopMessage,\n CypressSuiteEndMessage,\n CypressSuiteStartMessage,\n CypressTestEndMessage,\n CypressTestSkipMessage,\n CypressTestStartMessage,\n SpecContext,\n} from \"./types.js\";\nimport { DEFAULT_RUNTIME_CONFIG, last } from \"./utils.js\";\n\nexport class AllureCypress {\n allureRuntime: ReporterRuntime;\n specContextByAbsolutePath = new Map<string, SpecContext>();\n #fixtureNames = new Map<string, string>();\n videoOnFailOnly: boolean = false;\n\n constructor(config: AllureCypressConfig = {}) {\n const { resultsDir, videoOnFailOnly = false, ...rest } = config;\n\n this.videoOnFailOnly = videoOnFailOnly;\n this.allureRuntime = new ReporterRuntime({\n writer: createDefaultWriter({ resultsDir }),\n ...rest,\n });\n }\n\n attachToCypress = (on: Cypress.PluginEvents) => {\n on(\"task\", {\n reportAllureCypressSpecMessages: (args: AllureCypressTaskArgs) => {\n this.#applyAllureCypressMessages(args);\n return null;\n },\n reportFinalAllureCypressSpecMessages: (args: AllureCypressTaskArgs) => {\n this.#applyAllureCypressMessages(args);\n if (args.isInteractive) {\n // In non-interactive mode the spec is ended via the 'after:spec' event instead\n // to get the spec's video.\n this.endSpec(args.absolutePath);\n }\n return null;\n },\n });\n\n // Emits the remaining fixtures and writes the video of the spec.\n // In interactive mode it's invoked through the `reportFinalAllureCypressSpecMessages` task.\n on(\"after:spec\", this.onAfterSpec);\n\n // Emits the categories and env info. Doesn't work in interactive mode unless\n // `experimentalInteractiveRunEvents` is set.\n on(\"after:run\", this.onAfterRun);\n };\n\n /**\n * Forward the `after:spec` event into Allure Cypress using this function if\n * you need to define your own handler or combine Allure Cypress with other\n * plugins. More info [here](https://github.com/allure-framework/allure-js/blob/main/packages/allure-cypress/README.md#setupnodeevents-limitations).\n * @param spec The first argument of the `after:spec` event.\n * @param results The second argument of the `after:spec` event. It's `undefined` in interactive mode.\n * @example\n * ```javascript\n * import { defineConfig } from \"cypress\";\n * import { allureCypress } from \"allure-cypress/reporter\";\n *\n * export default defineConfig({\n * setupNodeEvents: (on, config) => {\n * const allureReporter = allureCypress(on, config);\n * on(\"after:spec\", (spec, results) => {\n * allureReporter.onAfterSpec(spec, results);\n * });\n * return config;\n * }\n * // ...\n * });\n * ```\n */\n onAfterSpec = (spec: Cypress.Spec, results: CypressCommandLine.RunResult | undefined) => {\n this.endSpec(spec.absolute, results?.video ?? undefined);\n };\n\n /**\n * Forward the `after:run` event into Allure Cypress using this function if\n * you need to define your own handler or combine Allure Cypress with other\n * plugins. More info [here](https://github.com/allure-framework/allure-js/blob/main/packages/allure-cypress/README.md#setupnodeevents-limitations).\n * @param results The argument of the `after:run` event. It's `undefined` in interactive mode.\n * @example\n * ```javascript\n * import { defineConfig } from \"cypress\";\n * import { allureCypress } from \"allure-cypress/reporter\";\n *\n * export default defineConfig({\n * setupNodeEvents: (on, config) => {\n * const allureReporter = allureCypress(on, config);\n * on(\"after:run\", (results) => {\n * allureReporter.onAfterRun(results);\n * });\n * return config;\n * }\n * // ...\n * });\n * ```\n */\n onAfterRun = (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n results: CypressCommandLine.CypressFailedRunResult | CypressCommandLine.CypressRunResult | undefined,\n ) => {\n this.endRun();\n };\n\n endRun = () => {\n this.#endAllSpecs();\n this.allureRuntime.writeEnvironmentInfo();\n this.allureRuntime.writeCategoriesDefinitions();\n };\n\n endSpec = (specAbsolutePath: string, cypressVideoPath?: string) => {\n const specContext = this.specContextByAbsolutePath.get(specAbsolutePath);\n if (specContext) {\n this.#attachSpecVideo(specContext, cypressVideoPath);\n this.#emitRemainingScopes(specContext);\n this.specContextByAbsolutePath.delete(specAbsolutePath);\n }\n };\n\n #endAllSpecs = () => {\n for (const specAbsolutePath of this.specContextByAbsolutePath.keys()) {\n this.endSpec(specAbsolutePath);\n }\n };\n\n #applyAllureCypressMessages = ({ messages, absolutePath }: AllureCypressTaskArgs) => {\n messages.forEach((message) => {\n if (message.type === \"cypress_run_start\") {\n this.#startRun(absolutePath);\n return;\n }\n\n const context = this.specContextByAbsolutePath.get(absolutePath);\n if (!context) {\n return;\n }\n\n switch (message.type) {\n case \"cypress_suite_start\":\n this.#startSuite(context, message);\n break;\n case \"cypress_suite_end\":\n this.#stopSuite(context, message);\n break;\n case \"cypress_hook_start\":\n this.#startHook(context, message);\n break;\n case \"cypress_hook_end\":\n this.#stopHook(context, message);\n break;\n case \"cypress_test_start\":\n this.#startTest(context, message);\n break;\n case \"cypress_test_pass\":\n this.#passTest(context);\n break;\n case \"cypress_fail\":\n this.#failHookAndTest(context, message);\n break;\n case \"cypress_test_skip\":\n this.#skipTest(context, message);\n break;\n case \"cypress_skipped_test\":\n this.#addSkippedTest(context, message);\n break;\n case \"cypress_test_end\":\n this.#stopTest(context, message);\n break;\n case \"cypress_step_start\":\n this.#startStep(context, message.data);\n break;\n case \"cypress_step_stop\":\n this.#stopStep(context, message.data);\n break;\n case \"cypress_step_finalize\":\n this.#finalizeStep(context, message.data);\n break;\n default:\n this.#applyRuntimeApiMessages(context, message);\n break;\n }\n });\n };\n\n #startRun = (absolutePath: string) => {\n if (!this.specContextByAbsolutePath.has(absolutePath)) {\n this.#initializeSpecContext(absolutePath);\n }\n };\n\n #startSuite = (context: SpecContext, { data: { id, name, root } }: CypressSuiteStartMessage) => {\n this.#pushNewSuiteScope(context, id);\n if (!root) {\n this.#emitPreviousTestScope(context);\n context.suiteNames.push(name);\n }\n };\n\n #pushNewSuiteScope = (context: SpecContext, suiteId: string) => {\n const scope = this.allureRuntime.startScope();\n context.suiteScopes.push(scope);\n context.suiteIdToScope.set(suiteId, scope);\n context.suiteScopeToId.set(scope, suiteId);\n return scope;\n };\n\n #stopSuite = (context: SpecContext, { data: { root } }: CypressSuiteEndMessage) => {\n this.#emitPreviousTestScope(context);\n if (!root) {\n context.suiteNames.pop();\n }\n this.#writeLastSuiteScope(context);\n };\n\n #writeLastSuiteScope = (context: SpecContext) => {\n const scope = context.suiteScopes.pop();\n if (scope) {\n const suiteId = context.suiteScopeToId.get(scope);\n if (suiteId) {\n context.suiteScopeToId.delete(scope);\n context.suiteIdToScope.delete(suiteId);\n }\n this.allureRuntime.writeScope(scope);\n }\n };\n\n #startHook = (context: SpecContext, { data: { name, scopeType, position, start } }: CypressHookStartMessage) => {\n const isEach = scopeType === \"each\";\n const isAfterEach = position === \"after\" && isEach;\n if (!isAfterEach) {\n this.#emitPreviousTestScope(context);\n }\n\n const scope = isEach ? context.testScope : last(context.suiteScopes);\n if (scope) {\n context.fixture = this.allureRuntime.startFixture(scope, position, {\n name,\n start,\n status: undefined,\n });\n if (context.fixture) {\n this.#fixtureNames.set(context.fixture, name);\n }\n }\n };\n\n #stopHook = (context: SpecContext, { data: { duration } }: CypressHookEndMessage) => {\n const fixtureUuid = context.fixture;\n if (fixtureUuid) {\n this.allureRuntime.updateFixture(fixtureUuid, (fixture) => {\n fixture.status ??= Status.PASSED;\n });\n this.allureRuntime.stopFixture(fixtureUuid, { duration });\n this.#fixFixtureStepStops(fixtureUuid);\n this.#fixtureNames.delete(fixtureUuid);\n context.fixture = undefined;\n }\n };\n\n #startTest = (context: SpecContext, { data: { fullNameSuffix, ...testResultData } }: CypressTestStartMessage) => {\n this.#emitPreviousTestScope(context);\n const testScope = this.allureRuntime.startScope();\n context.testScope = testScope;\n context.test = this.#addNewTestResult(context, fullNameSuffix, testResultData, [\n context.videoScope,\n ...context.suiteScopes,\n testScope,\n ]);\n };\n\n #addNewTestResult = (\n context: SpecContext,\n fullNameSuffix: string,\n { labels: metadataLabels = [], ...otherTestData }: Partial<TestResult>,\n scopes: string[],\n ) => {\n const projectName = getProjectName();\n const posixPath = getPosixPath(context.specPath);\n const fullNameBase = projectName ? `${projectName}:${posixPath}` : posixPath;\n const legacyFullName = `${posixPath}#${fullNameSuffix}`;\n\n const titlePath = posixPath.split(\"/\").concat(context.suiteNames);\n\n return this.allureRuntime.startTest(\n {\n stage: Stage.RUNNING,\n labels: [\n getLanguageLabel(),\n getFrameworkLabel(\"cypress\"),\n ...getSuiteLabels(context.suiteNames),\n ...metadataLabels,\n ...getEnvironmentLabels(),\n getHostLabel(),\n getThreadLabel(),\n getPackageLabel(context.specPath),\n getFallbackTestCaseIdLabel(md5(legacyFullName)),\n ],\n fullName: `${fullNameBase}#${fullNameSuffix}`,\n titlePath: projectName ? [projectName, ...titlePath] : titlePath,\n ...otherTestData,\n },\n scopes,\n );\n };\n\n #failHookAndTest = (context: SpecContext, { data: { status, statusDetails } }: CypressFailMessage) => {\n const setError = (result: object) => Object.assign(result, { status, statusDetails });\n\n const fixtureUuid = context.fixture;\n if (fixtureUuid) {\n this.allureRuntime.updateFixture(fixtureUuid, setError);\n this.allureRuntime.applyGlobalRuntimeMessages([\n toGlobalErrorMessage(this.#fixtureNames.get(fixtureUuid) ?? \"hook\", statusDetails),\n ]);\n }\n\n const testUuid = context.test;\n if (testUuid) {\n this.allureRuntime.updateTest(testUuid, setError);\n }\n\n context.failed = true;\n };\n\n #passTest = (context: SpecContext) => {\n const testUuid = context.test;\n if (testUuid) {\n this.allureRuntime.updateTest(testUuid, (testResult) => {\n testResult.status = Status.PASSED;\n });\n }\n };\n\n #skipTest = (context: SpecContext, { data: { statusDetails } }: CypressTestSkipMessage) => {\n const testUuid = context.test;\n if (testUuid) {\n this.allureRuntime.updateTest(testUuid, (testResult) => {\n testResult.status = Status.SKIPPED;\n if (statusDetails) {\n testResult.statusDetails = statusDetails;\n }\n });\n }\n };\n\n #addSkippedTest = (\n context: SpecContext,\n { data: { fullNameSuffix, suites, duration, retries, ...testResultData } }: CypressSkippedTestMessage,\n ) => {\n // Tests skipped because of a hook error may share all suites of the current context\n // or just a part thereof (if it's from a sibling suite).\n const scopes = suites.map((s) => context.suiteIdToScope.get(s)).filter((s): s is string => Boolean(s));\n\n const testUuid = this.#addNewTestResult(context, fullNameSuffix, testResultData, [context.videoScope, ...scopes]);\n this.#stopExistingTestResult(testUuid, { duration, retries });\n this.allureRuntime.writeTest(testUuid);\n };\n\n #stopTest = (context: SpecContext, { data }: CypressTestEndMessage) => {\n const testUuid = context.test;\n if (testUuid) {\n this.#stopExistingTestResult(testUuid, data);\n this.allureRuntime.writeTest(testUuid);\n context.test = undefined;\n }\n };\n\n #stopExistingTestResult = (testUuid: string, { retries, duration }: CypressTestEndMessage[\"data\"]) => {\n this.allureRuntime.updateTest(testUuid, (testResult) => {\n if (retries > 0) {\n testResult.parameters.push({\n name: \"Retry\",\n value: retries.toString(),\n excluded: true,\n });\n }\n testResult.stage = Stage.FINISHED;\n });\n this.allureRuntime.stopTest(testUuid, { duration });\n this.#fixTestStepStops(testUuid);\n };\n\n #fixTestStepStops = (testUuid: string) => {\n this.allureRuntime.updateTest(testUuid, this.#fixStepStops);\n };\n\n #fixFixtureStepStops = (fixtureUuid: string) => {\n this.allureRuntime.updateFixture(fixtureUuid, this.#fixStepStops);\n };\n\n #fixStepStops = ({ stop, steps = [] }: TestResult | FixtureResult) => {\n if (stop) {\n // In some circumstances, steps becomes dangling and are stopped at the test end/hook end events, which happen\n // chronologically after the test or fixture ends. This leads to the steps' stop time being greater than the one\n // of the test/fixture.\n // The only steps that may be affected are the rightmost descendants of the test/fixture.\n for (let step = steps.at(-1); step; step = step.steps.at(-1)) {\n if (step.stop && step.stop > stop) {\n step.stop = stop;\n } else {\n // Steps are always stopped child-to-parent. If a step's stop time is OK, its substeps are also correct.\n return;\n }\n }\n }\n };\n\n #startStep = (context: SpecContext, { id, ...properties }: CypressStepStartMessage[\"data\"]) => {\n const rootUuid = this.#resolveRootUuid(context);\n if (rootUuid) {\n const stepUuid = this.allureRuntime.startStep(rootUuid, undefined, properties);\n if (stepUuid) {\n context.stepsByFrontEndId.set(id, stepUuid);\n }\n }\n };\n\n #stopStep = (context: SpecContext, { id, stop, ...properties }: CypressStepStopMessage[\"data\"]) => {\n const stepUuid = context.stepsByFrontEndId.get(id);\n if (stepUuid) {\n this.allureRuntime.updateStep(stepUuid, (r) => {\n Object.assign(r, properties);\n });\n this.allureRuntime.stopStep(stepUuid, { stop });\n }\n };\n\n #finalizeStep = (context: SpecContext, { id, ...properties }: CypressStepFinalizeMessage[\"data\"]) => {\n const stepUuid = context.stepsByFrontEndId.get(id);\n if (stepUuid) {\n this.allureRuntime.updateStep(stepUuid, (r) => {\n Object.assign(r, properties);\n });\n context.stepsByFrontEndId.delete(id);\n }\n };\n\n #applyRuntimeApiMessages = (context: SpecContext, message: RuntimeMessage) => {\n const rootUuid = this.#resolveRootUuid(context);\n if (rootUuid) {\n this.allureRuntime.applyRuntimeMessages(rootUuid, [message]);\n } else {\n this.allureRuntime.applyGlobalRuntimeMessages([message]);\n }\n };\n\n /**\n * We must defer emitting a test's scope until we receive all the test's `afterEach` hooks.\n * At the same time, we should report it as early as we can. That means we should call this\n * method in the following cases:\n * - when an `after` hook of the test starts (`after` hooks are called later than `afterEach`)\n * - when a `before` or `beforeEach` hook of the next test starts (in case the next test has `before`/`beforeEach` hooks)\n * - when the next test starts (in case the next test doesn't have `before`/`beforeEach` hooks)\n * - when the test's suite ends (in case the test is the last one in its suite, including the root suite of the spec)\n * - when a nested suite starts\n * - when the spec ends\n */\n #emitPreviousTestScope = (context: SpecContext) => {\n const testScope = context.testScope;\n\n // Checking the test allows us to tell `beforeEach` and `afterEach` apart.\n // Here we're interested in `afterEach` only.\n if (!context.test && testScope) {\n this.allureRuntime.writeScope(testScope);\n context.testScope = undefined;\n }\n };\n\n #resolveRootUuid = (context: SpecContext) => context.fixture ?? context.test;\n\n #attachSpecVideo = (context: SpecContext, cypressVideoPath?: string) => {\n const shouldVideoBeAttached = (!this.videoOnFailOnly || context.failed) && cypressVideoPath;\n if (shouldVideoBeAttached) {\n const fixtureUuid = this.allureRuntime.startFixture(context.videoScope, \"after\", {\n name: \"Cypress video\",\n status: Status.PASSED,\n stage: Stage.FINISHED,\n })!;\n this.allureRuntime.writeAttachment(fixtureUuid, undefined, \"Cypress video\", cypressVideoPath, {\n contentType: ContentType.MP4,\n });\n this.allureRuntime.stopFixture(fixtureUuid);\n this.allureRuntime.writeScope(context.videoScope);\n }\n };\n\n #emitRemainingScopes = (context: SpecContext) => {\n this.#emitPreviousTestScope(context);\n context.suiteScopes.forEach((scope) => {\n this.allureRuntime.writeScope(scope);\n });\n };\n\n #initializeSpecContext = (absolutePath: string) => {\n const specPath = getRelativePath(absolutePath);\n const context: SpecContext = {\n specPath,\n test: undefined,\n fixture: undefined,\n stepsByFrontEndId: new Map(),\n videoScope: this.allureRuntime.startScope(),\n suiteIdToScope: new Map(),\n suiteScopeToId: new Map(),\n suiteScopes: [],\n testScope: undefined,\n suiteNames: [],\n failed: false,\n };\n this.specContextByAbsolutePath.set(absolutePath, context);\n };\n}\n\nconst createRuntimeState = (allureConfig?: AllureCypressConfig): AllureSpecState => ({\n config: getRuntimeConfigDefaults(allureConfig),\n initialized: false,\n messages: [],\n testPlan: parseTestPlan(),\n projectDir: getProjectRoot(),\n projectName: getProjectName(),\n stepStack: [],\n stepsToFinalize: [],\n nextApiStepId: 0,\n});\n\nconst getRuntimeConfigDefaults = ({\n stepsFromCommands: {\n enabled = DEFAULT_RUNTIME_CONFIG.stepsFromCommands.enabled,\n maxArgumentLength = DEFAULT_RUNTIME_CONFIG.stepsFromCommands.maxArgumentLength,\n maxArgumentDepth = DEFAULT_RUNTIME_CONFIG.stepsFromCommands.maxArgumentDepth,\n } = DEFAULT_RUNTIME_CONFIG.stepsFromCommands,\n}: AllureCypressConfig = DEFAULT_RUNTIME_CONFIG): AllureSpecState[\"config\"] => ({\n stepsFromCommands: {\n enabled,\n maxArgumentDepth,\n maxArgumentLength,\n },\n});\n\nconst initializeRuntimeState = (cypressConfig: Cypress.PluginConfigOptions, allureConfig?: AllureCypressConfig) => {\n const allureState = createRuntimeState(allureConfig);\n if (cypressConfig.expose) {\n // Cypress 15.10+ uses `expose` instead of `env` to share data between the Node and browser contexts.\n cypressConfig.expose.allure = allureState;\n }\n if (cypressConfig.env) {\n // For legacy Cypress versions.\n cypressConfig.env.allure = allureState;\n }\n return cypressConfig;\n};\n\n/**\n * Sets up Allure Cypress.\n * @param on The function used to subscribe to Cypress Node events (it's the first argument of `setupNodeEvents`).\n * @param cypressConfig The Cypress configuration (the second argument of `setupNodeEvents`). If provided, the selective run feature will be enabled.\n * @param allureConfig An Allure configuration object (optional).\n * @example\n * ```javascript\n * import { defineConfig } from \"cypress\";\n * import { allureCypress } from \"allure-cypress/reporter\";\n *\n * export default defineConfig({\n * e2e: {\n * setupNodeEvents: (on, config) => {\n * allureCypress(on, config, { videoOnFailOnly: true });\n * return config;\n * },\n * // ...\n * }\n * });\n * ```\n */\nexport const allureCypress = (\n on: Cypress.PluginEvents,\n cypressConfig?: Cypress.PluginConfigOptions,\n allureConfig?: AllureCypressConfig,\n) => {\n // Backward compatibility; mainly for JS users who have no type hints\n if (!allureConfig && cypressConfig && !(\"env\" in cypressConfig)) {\n allureConfig = cypressConfig as AllureCypressConfig;\n }\n\n const hasCypressConfig = cypressConfig && \"env\" in cypressConfig;\n\n const allureCypressReporter = new AllureCypress(allureConfig);\n allureCypressReporter.attachToCypress(on);\n\n if (hasCypressConfig) {\n initializeRuntimeState(cypressConfig, allureConfig);\n }\n\n return allureCypressReporter;\n};\n\nconst toGlobalErrorMessage = (name: string, details: StatusDetails): RuntimeMessage => ({\n type: \"global_error\",\n data: {\n ...details,\n message: details.message ? `${name} failed: ${details.message}` : `${name} failed`,\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,KAAK,EAAEC,MAAM,QAAQ,mBAAmB;AAG9D,SACEC,eAAe,EACfC,mBAAmB,EACnBC,oBAAoB,EACpBC,0BAA0B,EAC1BC,iBAAiB,EACjBC,YAAY,EACZC,gBAAgB,EAChBC,eAAe,EACfC,YAAY,EACZC,cAAc,EACdC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,GAAG,EACHC,aAAa,QACR,gCAAgC;AAqBvC,SAASC,sBAAsB,EAAEC,IAAI,QAAQ,YAAY;AAAC,IAAAC,aAAA,oBAAAC,OAAA;AAAA,IAAAC,YAAA,oBAAAD,OAAA;AAAA,IAAAE,2BAAA,oBAAAF,OAAA;AAAA,IAAAG,SAAA,oBAAAH,OAAA;AAAA,IAAAI,WAAA,o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ACVrJ,OAAO,EAAEqJ,OAAO,CAACrJ,OAAO,MAAAuD,MAAA,CAAMhD,IAAI,eAAAgD,MAAA,CAAY8F,OAAO,CAACrJ,OAAO,OAAAuD,MAAA,CAAQhD,IAAI;EAAS;AAEtF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"reporter.js","names":["ContentType","Stage","Status","toGlobalErrorMessage","ReporterRuntime","createDefaultWriter","getDefaultSuiteLabels","getEnvironmentLabels","getFallbackTestCaseIdLabel","getFrameworkLabel","getHostLabel","getLanguageLabel","getPackageLabel","getPosixPath","getProjectName","getProjectRoot","getRelativePath","getThreadLabel","md5","parseTestPlan","DEFAULT_RUNTIME_CONFIG","last","_fixtureNames","WeakMap","_screenshotReferencesByPath","_endAllSpecs","_applyAllureCypressMessages","_startRun","_startSuite","_pushNewSuiteScope","_stopSuite","_writeLastSuiteScope","_startHook","_stopHook","_startTest","_addNewTestResult","_failHookAndTest","_passTest","_skipTest","_addSkippedTest","_stopTest","_stopExistingTestResult","_fixFixtureStepStops","_fixStepStops","_startStep","_stopStep","_finalizeStep","_applyRuntimeApiMessages","_emitPreviousTestScope","_resolveRootUuid","_attachSpecVideo","_emitRemainingScopes","_initializeSpecContext","AllureCypress","constructor","config","arguments","length","undefined","_defineProperty","Map","_classPrivateFieldInitSpec","on","reportAllureCypressSpecMessages","args","_classPrivateFieldGet","call","reportFinalAllureCypressSpecMessages","isInteractive","endSpec","absolutePath","onAfterScreenshot","onAfterSpec","onAfterRun","_ref","_classPrivateFieldGet2","path","reference","allureRuntime","emitAttachment","contentType","PNG","references","get","push","set","spec","results","_results$video","absolute","video","endRun","writeEnvironmentInfo","writeCategoriesDefinitions","specAbsolutePath","cypressVideoPath","specContext","specContextByAbsolutePath","delete","clear","keys","_ref2","messages","forEach","message","type","context","data","has","_ref3","id","name","root","suiteNames","suiteId","scope","startScope","suiteScopes","suiteIdToScope","suiteScopeToId","_ref4","pop","writeScope","_ref5","scopeType","position","start","isEach","isAfterEach","testScope","fixture","startFixture","status","_ref6","duration","fixtureUuid","updateFixture","_fixture$status","PASSED","stopFixture","_ref7","fullNameSuffix","testResultData","_objectWithoutProperties","_excluded","test","videoScope","_ref8","scopes","labels","metadataLabels","otherTestData","_excluded2","projectName","posixPath","specPath","fullNameBase","concat","legacyFullName","titlePath","split","startTest","_objectSpread","stage","RUNNING","fullName","_ref9","statusDetails","setError","result","Object","assign","_classPrivateFieldGet3","applyGlobalRuntimeMessages","details","testUuid","updateTest","failed","testResult","_ref0","SKIPPED","_ref1","suites","retries","_excluded3","map","s","filter","Boolean","writeTest","_ref10","_ref11","parameters","value","toString","excluded","FINISHED","stopTest","_ref12","stop","steps","step","at","_ref13","properties","_excluded4","rootUuid","stepUuid","startStep","stepsByFrontEndId","_ref14","_excluded5","updateStep","r","stopStep","_ref15","_excluded6","_message$data","options","_excluded7","shift","writeAttachment","applyRuntimeMessages","_context$fixture","shouldVideoBeAttached","videoOnFailOnly","MP4","resultsDir","rest","_excluded8","writer","createRuntimeState","allureConfig","getRuntimeConfigDefaults","initialized","testPlan","projectDir","stepStack","stepsToFinalize","nextApiStepId","stepsFromCommands","enabled","maxArgumentLength","maxArgumentDepth","initializeRuntimeState","cypressConfig","allureState","expose","allure","env","allureCypress","hasCypressConfig","allureCypressReporter","attachToCypress"],"sources":["../../src/reporter.ts"],"sourcesContent":["import { ContentType, Stage, Status } from \"allure-js-commons\";\nimport type { FixtureResult, TestResult } from \"allure-js-commons\";\nimport type { RuntimeMessage } from \"allure-js-commons/sdk\";\nimport { toGlobalErrorMessage } from \"allure-js-commons/sdk\";\nimport {\n type AttachmentReference,\n ReporterRuntime,\n createDefaultWriter,\n getDefaultSuiteLabels,\n getEnvironmentLabels,\n getFallbackTestCaseIdLabel,\n getFrameworkLabel,\n getHostLabel,\n getLanguageLabel,\n getPackageLabel,\n getPosixPath,\n getProjectName,\n getProjectRoot,\n getRelativePath,\n getThreadLabel,\n md5,\n parseTestPlan,\n} from \"allure-js-commons/sdk/reporter\";\nimport type Cypress from \"cypress\";\n\nimport type {\n AllureCypressConfig,\n AllureCypressTaskArgs,\n AllureSpecState,\n CypressFailMessage,\n CypressHookEndMessage,\n CypressHookStartMessage,\n CypressSkippedTestMessage,\n CypressStepFinalizeMessage,\n CypressStepStartMessage,\n CypressStepStopMessage,\n CypressSuiteEndMessage,\n CypressSuiteStartMessage,\n CypressTestEndMessage,\n CypressTestSkipMessage,\n CypressTestStartMessage,\n SpecContext,\n} from \"./types.js\";\nimport { DEFAULT_RUNTIME_CONFIG, last } from \"./utils.js\";\n\nexport class AllureCypress {\n allureRuntime: ReporterRuntime;\n specContextByAbsolutePath = new Map<string, SpecContext>();\n #fixtureNames = new Map<string, string>();\n #screenshotReferencesByPath = new Map<string, AttachmentReference[]>();\n videoOnFailOnly: boolean = false;\n\n constructor(config: AllureCypressConfig = {}) {\n const { resultsDir, videoOnFailOnly = false, ...rest } = config;\n\n this.videoOnFailOnly = videoOnFailOnly;\n this.allureRuntime = new ReporterRuntime({\n writer: createDefaultWriter({ resultsDir }),\n ...rest,\n });\n }\n\n attachToCypress = (on: Cypress.PluginEvents) => {\n on(\"task\", {\n reportAllureCypressSpecMessages: (args: AllureCypressTaskArgs) => {\n this.#applyAllureCypressMessages(args);\n return null;\n },\n reportFinalAllureCypressSpecMessages: (args: AllureCypressTaskArgs) => {\n this.#applyAllureCypressMessages(args);\n if (args.isInteractive) {\n // In non-interactive mode the spec is ended via the 'after:spec' event instead\n // to get the spec's video.\n this.endSpec(args.absolutePath);\n }\n return null;\n },\n });\n\n on(\"after:screenshot\", this.onAfterScreenshot);\n\n // Emits the remaining fixtures and writes the video of the spec.\n // In interactive mode it's invoked through the `reportFinalAllureCypressSpecMessages` task.\n on(\"after:spec\", this.onAfterSpec);\n\n // Emits the categories and env info. Doesn't work in interactive mode unless\n // `experimentalInteractiveRunEvents` is set.\n on(\"after:run\", this.onAfterRun);\n };\n\n /**\n * Forward `after:screenshot` here if you define your own handler. Pass the\n * final screenshot path after any changes made by your handler.\n */\n onAfterScreenshot = ({ path }: Cypress.ScreenshotDetails) => {\n // Snapshot plugins can move or delete the file before the browser flushes\n // its attachment message. Preserve each capture, including overwritten paths.\n const reference = this.allureRuntime.emitAttachment(path, { contentType: ContentType.PNG });\n const references = this.#screenshotReferencesByPath.get(path) ?? [];\n references.push(reference);\n this.#screenshotReferencesByPath.set(path, references);\n };\n\n /**\n * Forward the `after:spec` event into Allure Cypress using this function if\n * you need to define your own handler or combine Allure Cypress with other\n * plugins. More info [here](https://github.com/allure-framework/allure-js/blob/main/packages/allure-cypress/README.md#setupnodeevents-limitations).\n * @param spec The first argument of the `after:spec` event.\n * @param results The second argument of the `after:spec` event. It's `undefined` in interactive mode.\n * @example\n * ```javascript\n * import { defineConfig } from \"cypress\";\n * import { allureCypress } from \"allure-cypress/reporter\";\n *\n * export default defineConfig({\n * setupNodeEvents: (on, config) => {\n * const allureReporter = allureCypress(on, config);\n * on(\"after:spec\", (spec, results) => {\n * allureReporter.onAfterSpec(spec, results);\n * });\n * return config;\n * }\n * // ...\n * });\n * ```\n */\n onAfterSpec = (spec: Cypress.Spec, results: CypressCommandLine.RunResult | undefined) => {\n this.endSpec(spec.absolute, results?.video ?? undefined);\n };\n\n /**\n * Forward the `after:run` event into Allure Cypress using this function if\n * you need to define your own handler or combine Allure Cypress with other\n * plugins. More info [here](https://github.com/allure-framework/allure-js/blob/main/packages/allure-cypress/README.md#setupnodeevents-limitations).\n * @param results The argument of the `after:run` event. It's `undefined` in interactive mode.\n * @example\n * ```javascript\n * import { defineConfig } from \"cypress\";\n * import { allureCypress } from \"allure-cypress/reporter\";\n *\n * export default defineConfig({\n * setupNodeEvents: (on, config) => {\n * const allureReporter = allureCypress(on, config);\n * on(\"after:run\", (results) => {\n * allureReporter.onAfterRun(results);\n * });\n * return config;\n * }\n * // ...\n * });\n * ```\n */\n onAfterRun = (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n results: CypressCommandLine.CypressFailedRunResult | CypressCommandLine.CypressRunResult | undefined,\n ) => {\n this.endRun();\n };\n\n endRun = () => {\n this.#endAllSpecs();\n this.allureRuntime.writeEnvironmentInfo();\n this.allureRuntime.writeCategoriesDefinitions();\n };\n\n endSpec = (specAbsolutePath: string, cypressVideoPath?: string) => {\n const specContext = this.specContextByAbsolutePath.get(specAbsolutePath);\n if (specContext) {\n this.#attachSpecVideo(specContext, cypressVideoPath);\n this.#emitRemainingScopes(specContext);\n this.specContextByAbsolutePath.delete(specAbsolutePath);\n }\n this.#screenshotReferencesByPath.clear();\n };\n\n #endAllSpecs = () => {\n for (const specAbsolutePath of this.specContextByAbsolutePath.keys()) {\n this.endSpec(specAbsolutePath);\n }\n };\n\n #applyAllureCypressMessages = ({ messages, absolutePath }: AllureCypressTaskArgs) => {\n messages.forEach((message) => {\n if (message.type === \"cypress_run_start\") {\n this.#startRun(absolutePath);\n return;\n }\n\n const context = this.specContextByAbsolutePath.get(absolutePath);\n if (!context) {\n return;\n }\n\n switch (message.type) {\n case \"cypress_suite_start\":\n this.#startSuite(context, message);\n break;\n case \"cypress_suite_end\":\n this.#stopSuite(context, message);\n break;\n case \"cypress_hook_start\":\n this.#startHook(context, message);\n break;\n case \"cypress_hook_end\":\n this.#stopHook(context, message);\n break;\n case \"cypress_test_start\":\n this.#startTest(context, message);\n break;\n case \"cypress_test_pass\":\n this.#passTest(context);\n break;\n case \"cypress_fail\":\n this.#failHookAndTest(context, message);\n break;\n case \"cypress_test_skip\":\n this.#skipTest(context, message);\n break;\n case \"cypress_skipped_test\":\n this.#addSkippedTest(context, message);\n break;\n case \"cypress_test_end\":\n this.#stopTest(context, message);\n break;\n case \"cypress_step_start\":\n this.#startStep(context, message.data);\n break;\n case \"cypress_step_stop\":\n this.#stopStep(context, message.data);\n break;\n case \"cypress_step_finalize\":\n this.#finalizeStep(context, message.data);\n break;\n default:\n this.#applyRuntimeApiMessages(context, message);\n break;\n }\n });\n };\n\n #startRun = (absolutePath: string) => {\n if (!this.specContextByAbsolutePath.has(absolutePath)) {\n this.#initializeSpecContext(absolutePath);\n }\n };\n\n #startSuite = (context: SpecContext, { data: { id, name, root } }: CypressSuiteStartMessage) => {\n this.#pushNewSuiteScope(context, id);\n if (!root) {\n this.#emitPreviousTestScope(context);\n context.suiteNames.push(name);\n }\n };\n\n #pushNewSuiteScope = (context: SpecContext, suiteId: string) => {\n const scope = this.allureRuntime.startScope();\n context.suiteScopes.push(scope);\n context.suiteIdToScope.set(suiteId, scope);\n context.suiteScopeToId.set(scope, suiteId);\n return scope;\n };\n\n #stopSuite = (context: SpecContext, { data: { root } }: CypressSuiteEndMessage) => {\n this.#emitPreviousTestScope(context);\n if (!root) {\n context.suiteNames.pop();\n }\n this.#writeLastSuiteScope(context);\n };\n\n #writeLastSuiteScope = (context: SpecContext) => {\n const scope = context.suiteScopes.pop();\n if (scope) {\n const suiteId = context.suiteScopeToId.get(scope);\n if (suiteId) {\n context.suiteScopeToId.delete(scope);\n context.suiteIdToScope.delete(suiteId);\n }\n this.allureRuntime.writeScope(scope);\n }\n };\n\n #startHook = (context: SpecContext, { data: { name, scopeType, position, start } }: CypressHookStartMessage) => {\n const isEach = scopeType === \"each\";\n const isAfterEach = position === \"after\" && isEach;\n if (!isAfterEach) {\n this.#emitPreviousTestScope(context);\n }\n\n const scope = isEach ? context.testScope : last(context.suiteScopes);\n if (scope) {\n context.fixture = this.allureRuntime.startFixture(scope, position, {\n name,\n start,\n status: undefined,\n });\n if (context.fixture) {\n this.#fixtureNames.set(context.fixture, name);\n }\n }\n };\n\n #stopHook = (context: SpecContext, { data: { duration } }: CypressHookEndMessage) => {\n const fixtureUuid = context.fixture;\n if (fixtureUuid) {\n this.allureRuntime.updateFixture(fixtureUuid, (fixture) => {\n fixture.status ??= Status.PASSED;\n });\n this.allureRuntime.stopFixture(fixtureUuid, { duration });\n this.#fixFixtureStepStops(fixtureUuid);\n this.#fixtureNames.delete(fixtureUuid);\n context.fixture = undefined;\n }\n };\n\n #startTest = (context: SpecContext, { data: { fullNameSuffix, ...testResultData } }: CypressTestStartMessage) => {\n this.#emitPreviousTestScope(context);\n const testScope = this.allureRuntime.startScope();\n context.testScope = testScope;\n context.test = this.#addNewTestResult(context, fullNameSuffix, testResultData, [\n context.videoScope,\n ...context.suiteScopes,\n testScope,\n ]);\n };\n\n #addNewTestResult = (\n context: SpecContext,\n fullNameSuffix: string,\n { labels: metadataLabels = [], ...otherTestData }: Partial<TestResult>,\n scopes: string[],\n ) => {\n const projectName = getProjectName();\n const posixPath = getPosixPath(context.specPath);\n const fullNameBase = projectName ? `${projectName}:${posixPath}` : posixPath;\n const legacyFullName = `${posixPath}#${fullNameSuffix}`;\n\n const titlePath = posixPath.split(\"/\").concat(context.suiteNames);\n\n return this.allureRuntime.startTest(\n {\n stage: Stage.RUNNING,\n labels: [\n getLanguageLabel(),\n getFrameworkLabel(\"cypress\"),\n ...metadataLabels,\n ...getEnvironmentLabels(),\n getHostLabel(),\n getThreadLabel(),\n getPackageLabel(context.specPath),\n getFallbackTestCaseIdLabel(md5(legacyFullName)),\n ],\n fullName: `${fullNameBase}#${fullNameSuffix}`,\n titlePath: projectName ? [projectName, ...titlePath] : titlePath,\n ...otherTestData,\n },\n scopes,\n );\n };\n\n #failHookAndTest = (context: SpecContext, { data: { status, statusDetails } }: CypressFailMessage) => {\n const setError = (result: object) => Object.assign(result, { status, statusDetails });\n\n const fixtureUuid = context.fixture;\n if (fixtureUuid) {\n this.allureRuntime.updateFixture(fixtureUuid, setError);\n this.allureRuntime.applyGlobalRuntimeMessages([\n toGlobalErrorMessage({\n name: this.#fixtureNames.get(fixtureUuid) ?? \"hook\",\n details: statusDetails,\n status,\n }),\n ]);\n }\n\n const testUuid = context.test;\n if (testUuid) {\n this.allureRuntime.updateTest(testUuid, setError);\n }\n\n context.failed = true;\n };\n\n #passTest = (context: SpecContext) => {\n const testUuid = context.test;\n if (testUuid) {\n this.allureRuntime.updateTest(testUuid, (testResult) => {\n testResult.status = Status.PASSED;\n });\n }\n };\n\n #skipTest = (context: SpecContext, { data: { statusDetails } }: CypressTestSkipMessage) => {\n const testUuid = context.test;\n if (testUuid) {\n this.allureRuntime.updateTest(testUuid, (testResult) => {\n testResult.status = Status.SKIPPED;\n if (statusDetails) {\n testResult.statusDetails = statusDetails;\n }\n });\n }\n };\n\n #addSkippedTest = (\n context: SpecContext,\n { data: { fullNameSuffix, suites, duration, retries, ...testResultData } }: CypressSkippedTestMessage,\n ) => {\n // Tests skipped because of a hook error may share all suites of the current context\n // or just a part thereof (if it's from a sibling suite).\n const scopes = suites.map((s) => context.suiteIdToScope.get(s)).filter((s): s is string => Boolean(s));\n\n const testUuid = this.#addNewTestResult(context, fullNameSuffix, testResultData, [context.videoScope, ...scopes]);\n this.#stopExistingTestResult(testUuid, { duration, retries }, context.suiteNames);\n this.allureRuntime.writeTest(testUuid);\n };\n\n #stopTest = (context: SpecContext, { data }: CypressTestEndMessage) => {\n const testUuid = context.test;\n if (testUuid) {\n this.#stopExistingTestResult(testUuid, data, context.suiteNames);\n this.allureRuntime.writeTest(testUuid);\n context.test = undefined;\n }\n };\n\n #stopExistingTestResult = (\n testUuid: string,\n { retries, duration }: CypressTestEndMessage[\"data\"],\n suiteNames: string[],\n ) => {\n this.allureRuntime.updateTest(testUuid, (testResult) => {\n if (retries > 0) {\n testResult.parameters.push({\n name: \"Retry\",\n value: retries.toString(),\n excluded: true,\n });\n }\n testResult.stage = Stage.FINISHED;\n });\n this.allureRuntime.stopTest(testUuid, { duration });\n // Hook metadata is merged by stopTest, so apply defaults only after it.\n this.allureRuntime.updateTest(testUuid, (testResult) => {\n testResult.labels.push(...getDefaultSuiteLabels(testResult, suiteNames));\n this.#fixStepStops(testResult);\n });\n };\n\n #fixFixtureStepStops = (fixtureUuid: string) => {\n this.allureRuntime.updateFixture(fixtureUuid, this.#fixStepStops);\n };\n\n #fixStepStops = ({ stop, steps = [] }: TestResult | FixtureResult) => {\n if (stop) {\n // In some circumstances, steps becomes dangling and are stopped at the test end/hook end events, which happen\n // chronologically after the test or fixture ends. This leads to the steps' stop time being greater than the one\n // of the test/fixture.\n // The only steps that may be affected are the rightmost descendants of the test/fixture.\n for (let step = steps.at(-1); step; step = step.steps.at(-1)) {\n if (step.stop && step.stop > stop) {\n step.stop = stop;\n } else {\n // Steps are always stopped child-to-parent. If a step's stop time is OK, its substeps are also correct.\n return;\n }\n }\n }\n };\n\n #startStep = (context: SpecContext, { id, ...properties }: CypressStepStartMessage[\"data\"]) => {\n const rootUuid = this.#resolveRootUuid(context);\n if (rootUuid) {\n const stepUuid = this.allureRuntime.startStep(rootUuid, undefined, properties);\n if (stepUuid) {\n context.stepsByFrontEndId.set(id, stepUuid);\n }\n }\n };\n\n #stopStep = (context: SpecContext, { id, stop, ...properties }: CypressStepStopMessage[\"data\"]) => {\n const stepUuid = context.stepsByFrontEndId.get(id);\n if (stepUuid) {\n this.allureRuntime.updateStep(stepUuid, (r) => {\n Object.assign(r, properties);\n });\n this.allureRuntime.stopStep(stepUuid, { stop });\n }\n };\n\n #finalizeStep = (context: SpecContext, { id, ...properties }: CypressStepFinalizeMessage[\"data\"]) => {\n const stepUuid = context.stepsByFrontEndId.get(id);\n if (stepUuid) {\n this.allureRuntime.updateStep(stepUuid, (r) => {\n Object.assign(r, properties);\n });\n context.stepsByFrontEndId.delete(id);\n }\n };\n\n #applyRuntimeApiMessages = (context: SpecContext, message: RuntimeMessage) => {\n const rootUuid = this.#resolveRootUuid(context);\n if (message.type === \"attachment_path\") {\n const { path, name, ...options } = message.data;\n const references = this.#screenshotReferencesByPath.get(path);\n const reference = references?.shift();\n if (reference) {\n if (!references?.length) {\n this.#screenshotReferencesByPath.delete(path);\n }\n if (rootUuid) {\n this.allureRuntime.writeAttachment(rootUuid, undefined, name, reference, options);\n }\n return;\n }\n }\n\n if (rootUuid) {\n this.allureRuntime.applyRuntimeMessages(rootUuid, [message]);\n } else {\n this.allureRuntime.applyGlobalRuntimeMessages([message]);\n }\n };\n\n /**\n * We must defer emitting a test's scope until we receive all the test's `afterEach` hooks.\n * At the same time, we should report it as early as we can. That means we should call this\n * method in the following cases:\n * - when an `after` hook of the test starts (`after` hooks are called later than `afterEach`)\n * - when a `before` or `beforeEach` hook of the next test starts (in case the next test has `before`/`beforeEach` hooks)\n * - when the next test starts (in case the next test doesn't have `before`/`beforeEach` hooks)\n * - when the test's suite ends (in case the test is the last one in its suite, including the root suite of the spec)\n * - when a nested suite starts\n * - when the spec ends\n */\n #emitPreviousTestScope = (context: SpecContext) => {\n const testScope = context.testScope;\n\n // Checking the test allows us to tell `beforeEach` and `afterEach` apart.\n // Here we're interested in `afterEach` only.\n if (!context.test && testScope) {\n this.allureRuntime.writeScope(testScope);\n context.testScope = undefined;\n }\n };\n\n #resolveRootUuid = (context: SpecContext) => context.fixture ?? context.test;\n\n #attachSpecVideo = (context: SpecContext, cypressVideoPath?: string) => {\n const shouldVideoBeAttached = (!this.videoOnFailOnly || context.failed) && cypressVideoPath;\n if (shouldVideoBeAttached) {\n const fixtureUuid = this.allureRuntime.startFixture(context.videoScope, \"after\", {\n name: \"Cypress video\",\n status: Status.PASSED,\n stage: Stage.FINISHED,\n })!;\n this.allureRuntime.writeAttachment(fixtureUuid, undefined, \"Cypress video\", cypressVideoPath, {\n contentType: ContentType.MP4,\n });\n this.allureRuntime.stopFixture(fixtureUuid);\n this.allureRuntime.writeScope(context.videoScope);\n }\n };\n\n #emitRemainingScopes = (context: SpecContext) => {\n this.#emitPreviousTestScope(context);\n context.suiteScopes.forEach((scope) => {\n this.allureRuntime.writeScope(scope);\n });\n };\n\n #initializeSpecContext = (absolutePath: string) => {\n const specPath = getRelativePath(absolutePath);\n const context: SpecContext = {\n specPath,\n test: undefined,\n fixture: undefined,\n stepsByFrontEndId: new Map(),\n videoScope: this.allureRuntime.startScope(),\n suiteIdToScope: new Map(),\n suiteScopeToId: new Map(),\n suiteScopes: [],\n testScope: undefined,\n suiteNames: [],\n failed: false,\n };\n this.specContextByAbsolutePath.set(absolutePath, context);\n };\n}\n\nconst createRuntimeState = (allureConfig?: AllureCypressConfig): AllureSpecState => ({\n config: getRuntimeConfigDefaults(allureConfig),\n initialized: false,\n messages: [],\n testPlan: parseTestPlan(),\n projectDir: getProjectRoot(),\n projectName: getProjectName(),\n stepStack: [],\n stepsToFinalize: [],\n nextApiStepId: 0,\n});\n\nconst getRuntimeConfigDefaults = ({\n stepsFromCommands: {\n enabled = DEFAULT_RUNTIME_CONFIG.stepsFromCommands.enabled,\n maxArgumentLength = DEFAULT_RUNTIME_CONFIG.stepsFromCommands.maxArgumentLength,\n maxArgumentDepth = DEFAULT_RUNTIME_CONFIG.stepsFromCommands.maxArgumentDepth,\n } = DEFAULT_RUNTIME_CONFIG.stepsFromCommands,\n}: AllureCypressConfig = DEFAULT_RUNTIME_CONFIG): AllureSpecState[\"config\"] => ({\n stepsFromCommands: {\n enabled,\n maxArgumentDepth,\n maxArgumentLength,\n },\n});\n\nconst initializeRuntimeState = (cypressConfig: Cypress.PluginConfigOptions, allureConfig?: AllureCypressConfig) => {\n const allureState = createRuntimeState(allureConfig);\n if (cypressConfig.expose) {\n // Cypress 15.10+ uses `expose` instead of `env` to share data between the Node and browser contexts.\n cypressConfig.expose.allure = allureState;\n }\n if (cypressConfig.env) {\n // For legacy Cypress versions.\n cypressConfig.env.allure = allureState;\n }\n return cypressConfig;\n};\n\n/**\n * Sets up Allure Cypress.\n * @param on The function used to subscribe to Cypress Node events (it's the first argument of `setupNodeEvents`).\n * @param cypressConfig The Cypress configuration (the second argument of `setupNodeEvents`). If provided, the selective run feature will be enabled.\n * @param allureConfig An Allure configuration object (optional).\n * @example\n * ```javascript\n * import { defineConfig } from \"cypress\";\n * import { allureCypress } from \"allure-cypress/reporter\";\n *\n * export default defineConfig({\n * e2e: {\n * setupNodeEvents: (on, config) => {\n * allureCypress(on, config, { videoOnFailOnly: true });\n * return config;\n * },\n * // ...\n * }\n * });\n * ```\n */\nexport const allureCypress = (\n on: Cypress.PluginEvents,\n cypressConfig?: Cypress.PluginConfigOptions,\n allureConfig?: AllureCypressConfig,\n) => {\n // Backward compatibility; mainly for JS users who have no type hints\n if (!allureConfig && cypressConfig && !(\"env\" in cypressConfig)) {\n allureConfig = cypressConfig as AllureCypressConfig;\n }\n\n const hasCypressConfig = cypressConfig && \"env\" in cypressConfig;\n\n const allureCypressReporter = new AllureCypress(allureConfig);\n allureCypressReporter.attachToCypress(on);\n\n if (hasCypressConfig) {\n initializeRuntimeState(cypressConfig, allureConfig);\n }\n\n return allureCypressReporter;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,KAAK,EAAEC,MAAM,QAAQ,mBAAmB;AAG9D,SAASC,oBAAoB,QAAQ,uBAAuB;AAC5D,SAEEC,eAAe,EACfC,mBAAmB,EACnBC,qBAAqB,EACrBC,oBAAoB,EACpBC,0BAA0B,EAC1BC,iBAAiB,EACjBC,YAAY,EACZC,gBAAgB,EAChBC,eAAe,EACfC,YAAY,EACZC,cAAc,EACdC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,GAAG,EACHC,aAAa,QACR,gCAAgC;AAqBvC,SAASC,sBAAsB,EAAEC,IAAI,QAAQ,YAAY;AAAC,IAAAC,aAAA,oBAAAC,OAAA;AAAA,IAAAC,2BAAA,oBAAAD,OAAA;AAAA,IAAAE,YAAA,oBAAAF,OAAA;AAAA,IAAAG,2BAAA,oBAAAH,OAAA;AAAA,IAAAI,SAAA,oBAAAJ,OAAA;AAAA,IAAAK,WAAA,oBAAAL,OAAA;AAAA,IAAAM,kBAAA,oBAAAN,OAAA;AAAA,IAAAO,UAAA,oBAAAP,OAAA;AAAA,IAAAQ,oBAAA,oBAAAR,OAAA;AAAA,IAAAS,UAAA,oBAAAT,OAAA;AAAA,IAAAU,SAAA,oBAAAV,OAAA;AAAA,IAAAW,UAAA,oBAAAX,OAAA;AAAA,IAAAY,iBAAA,oBAAAZ,OAAA;AAAA,IAAAa,gBAAA,oBAAAb,OAAA;AAAA,IAAAc,SAAA,oBAAAd,OAAA;AA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