allure-cypress 3.14.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 +64 -6
- 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 +92 -50
- 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 +63 -6
- 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 +93 -51
- package/dist/esm/reporter.js.map +1 -1
- package/dist/types/browser/runtime.d.ts +6 -2
- package/dist/types/reporter.d.ts +5 -0
- package/package.json +3 -6
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; }
|
|
@@ -18,9 +19,10 @@ 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
21
|
import { toGlobalErrorMessage } from "allure-js-commons/sdk";
|
|
21
|
-
import { ReporterRuntime, createDefaultWriter, getEnvironmentLabels, getFallbackTestCaseIdLabel, getFrameworkLabel, getHostLabel, getLanguageLabel, getPackageLabel, getPosixPath, getProjectName, getProjectRoot, getRelativePath,
|
|
22
|
+
import { ReporterRuntime, createDefaultWriter, getDefaultSuiteLabels, getEnvironmentLabels, getFallbackTestCaseIdLabel, getFrameworkLabel, getHostLabel, getLanguageLabel, getPackageLabel, getPosixPath, getProjectName, getProjectRoot, getRelativePath, getThreadLabel, md5, parseTestPlan } from "allure-js-commons/sdk/reporter";
|
|
22
23
|
import { DEFAULT_RUNTIME_CONFIG, last } from "./utils.js";
|
|
23
24
|
var _fixtureNames = /*#__PURE__*/new WeakMap();
|
|
25
|
+
var _screenshotReferencesByPath = /*#__PURE__*/new WeakMap();
|
|
24
26
|
var _endAllSpecs = /*#__PURE__*/new WeakMap();
|
|
25
27
|
var _applyAllureCypressMessages = /*#__PURE__*/new WeakMap();
|
|
26
28
|
var _startRun = /*#__PURE__*/new WeakMap();
|
|
@@ -38,7 +40,6 @@ var _skipTest = /*#__PURE__*/new WeakMap();
|
|
|
38
40
|
var _addSkippedTest = /*#__PURE__*/new WeakMap();
|
|
39
41
|
var _stopTest = /*#__PURE__*/new WeakMap();
|
|
40
42
|
var _stopExistingTestResult = /*#__PURE__*/new WeakMap();
|
|
41
|
-
var _fixTestStepStops = /*#__PURE__*/new WeakMap();
|
|
42
43
|
var _fixFixtureStepStops = /*#__PURE__*/new WeakMap();
|
|
43
44
|
var _fixStepStops = /*#__PURE__*/new WeakMap();
|
|
44
45
|
var _startStep = /*#__PURE__*/new WeakMap();
|
|
@@ -56,6 +57,7 @@ export class AllureCypress {
|
|
|
56
57
|
_defineProperty(this, "allureRuntime", void 0);
|
|
57
58
|
_defineProperty(this, "specContextByAbsolutePath", new Map());
|
|
58
59
|
_classPrivateFieldInitSpec(this, _fixtureNames, new Map());
|
|
60
|
+
_classPrivateFieldInitSpec(this, _screenshotReferencesByPath, new Map());
|
|
59
61
|
_defineProperty(this, "videoOnFailOnly", false);
|
|
60
62
|
_defineProperty(this, "attachToCypress", on => {
|
|
61
63
|
on("task", {
|
|
@@ -73,6 +75,7 @@ export class AllureCypress {
|
|
|
73
75
|
return null;
|
|
74
76
|
}
|
|
75
77
|
});
|
|
78
|
+
on("after:screenshot", this.onAfterScreenshot);
|
|
76
79
|
|
|
77
80
|
// Emits the remaining fixtures and writes the video of the spec.
|
|
78
81
|
// In interactive mode it's invoked through the `reportFinalAllureCypressSpecMessages` task.
|
|
@@ -82,6 +85,24 @@ export class AllureCypress {
|
|
|
82
85
|
// `experimentalInteractiveRunEvents` is set.
|
|
83
86
|
on("after:run", this.onAfterRun);
|
|
84
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
|
+
});
|
|
85
106
|
/**
|
|
86
107
|
* Forward the `after:spec` event into Allure Cypress using this function if
|
|
87
108
|
* you need to define your own handler or combine Allure Cypress with other
|
|
@@ -146,17 +167,18 @@ export class AllureCypress {
|
|
|
146
167
|
_classPrivateFieldGet(_emitRemainingScopes, this).call(this, specContext);
|
|
147
168
|
this.specContextByAbsolutePath.delete(specAbsolutePath);
|
|
148
169
|
}
|
|
170
|
+
_classPrivateFieldGet(_screenshotReferencesByPath, this).clear();
|
|
149
171
|
});
|
|
150
172
|
_classPrivateFieldInitSpec(this, _endAllSpecs, () => {
|
|
151
173
|
for (var specAbsolutePath of this.specContextByAbsolutePath.keys()) {
|
|
152
174
|
this.endSpec(specAbsolutePath);
|
|
153
175
|
}
|
|
154
176
|
});
|
|
155
|
-
_classPrivateFieldInitSpec(this, _applyAllureCypressMessages,
|
|
177
|
+
_classPrivateFieldInitSpec(this, _applyAllureCypressMessages, _ref2 => {
|
|
156
178
|
var {
|
|
157
179
|
messages,
|
|
158
180
|
absolutePath
|
|
159
|
-
} =
|
|
181
|
+
} = _ref2;
|
|
160
182
|
messages.forEach(message => {
|
|
161
183
|
if (message.type === "cypress_run_start") {
|
|
162
184
|
_classPrivateFieldGet(_startRun, this).call(this, absolutePath);
|
|
@@ -217,14 +239,14 @@ export class AllureCypress {
|
|
|
217
239
|
_classPrivateFieldGet(_initializeSpecContext, this).call(this, absolutePath);
|
|
218
240
|
}
|
|
219
241
|
});
|
|
220
|
-
_classPrivateFieldInitSpec(this, _startSuite, (context,
|
|
242
|
+
_classPrivateFieldInitSpec(this, _startSuite, (context, _ref3) => {
|
|
221
243
|
var {
|
|
222
244
|
data: {
|
|
223
245
|
id,
|
|
224
246
|
name,
|
|
225
247
|
root
|
|
226
248
|
}
|
|
227
|
-
} =
|
|
249
|
+
} = _ref3;
|
|
228
250
|
_classPrivateFieldGet(_pushNewSuiteScope, this).call(this, context, id);
|
|
229
251
|
if (!root) {
|
|
230
252
|
_classPrivateFieldGet(_emitPreviousTestScope, this).call(this, context);
|
|
@@ -238,12 +260,12 @@ export class AllureCypress {
|
|
|
238
260
|
context.suiteScopeToId.set(scope, suiteId);
|
|
239
261
|
return scope;
|
|
240
262
|
});
|
|
241
|
-
_classPrivateFieldInitSpec(this, _stopSuite, (context,
|
|
263
|
+
_classPrivateFieldInitSpec(this, _stopSuite, (context, _ref4) => {
|
|
242
264
|
var {
|
|
243
265
|
data: {
|
|
244
266
|
root
|
|
245
267
|
}
|
|
246
|
-
} =
|
|
268
|
+
} = _ref4;
|
|
247
269
|
_classPrivateFieldGet(_emitPreviousTestScope, this).call(this, context);
|
|
248
270
|
if (!root) {
|
|
249
271
|
context.suiteNames.pop();
|
|
@@ -261,7 +283,7 @@ export class AllureCypress {
|
|
|
261
283
|
this.allureRuntime.writeScope(scope);
|
|
262
284
|
}
|
|
263
285
|
});
|
|
264
|
-
_classPrivateFieldInitSpec(this, _startHook, (context,
|
|
286
|
+
_classPrivateFieldInitSpec(this, _startHook, (context, _ref5) => {
|
|
265
287
|
var {
|
|
266
288
|
data: {
|
|
267
289
|
name,
|
|
@@ -269,7 +291,7 @@ export class AllureCypress {
|
|
|
269
291
|
position,
|
|
270
292
|
start
|
|
271
293
|
}
|
|
272
|
-
} =
|
|
294
|
+
} = _ref5;
|
|
273
295
|
var isEach = scopeType === "each";
|
|
274
296
|
var isAfterEach = position === "after" && isEach;
|
|
275
297
|
if (!isAfterEach) {
|
|
@@ -287,12 +309,12 @@ export class AllureCypress {
|
|
|
287
309
|
}
|
|
288
310
|
}
|
|
289
311
|
});
|
|
290
|
-
_classPrivateFieldInitSpec(this, _stopHook, (context,
|
|
312
|
+
_classPrivateFieldInitSpec(this, _stopHook, (context, _ref6) => {
|
|
291
313
|
var {
|
|
292
314
|
data: {
|
|
293
315
|
duration
|
|
294
316
|
}
|
|
295
|
-
} =
|
|
317
|
+
} = _ref6;
|
|
296
318
|
var fixtureUuid = context.fixture;
|
|
297
319
|
if (fixtureUuid) {
|
|
298
320
|
this.allureRuntime.updateFixture(fixtureUuid, fixture => {
|
|
@@ -307,23 +329,23 @@ export class AllureCypress {
|
|
|
307
329
|
context.fixture = undefined;
|
|
308
330
|
}
|
|
309
331
|
});
|
|
310
|
-
_classPrivateFieldInitSpec(this, _startTest, (context,
|
|
332
|
+
_classPrivateFieldInitSpec(this, _startTest, (context, _ref7) => {
|
|
311
333
|
var {
|
|
312
334
|
data: {
|
|
313
335
|
fullNameSuffix
|
|
314
336
|
}
|
|
315
|
-
} =
|
|
316
|
-
testResultData = _objectWithoutProperties(
|
|
337
|
+
} = _ref7,
|
|
338
|
+
testResultData = _objectWithoutProperties(_ref7.data, _excluded);
|
|
317
339
|
_classPrivateFieldGet(_emitPreviousTestScope, this).call(this, context);
|
|
318
340
|
var testScope = this.allureRuntime.startScope();
|
|
319
341
|
context.testScope = testScope;
|
|
320
342
|
context.test = _classPrivateFieldGet(_addNewTestResult, this).call(this, context, fullNameSuffix, testResultData, [context.videoScope, ...context.suiteScopes, testScope]);
|
|
321
343
|
});
|
|
322
|
-
_classPrivateFieldInitSpec(this, _addNewTestResult, (context, fullNameSuffix,
|
|
344
|
+
_classPrivateFieldInitSpec(this, _addNewTestResult, (context, fullNameSuffix, _ref8, scopes) => {
|
|
323
345
|
var {
|
|
324
346
|
labels: metadataLabels = []
|
|
325
|
-
} =
|
|
326
|
-
otherTestData = _objectWithoutProperties(
|
|
347
|
+
} = _ref8,
|
|
348
|
+
otherTestData = _objectWithoutProperties(_ref8, _excluded2);
|
|
327
349
|
var projectName = getProjectName();
|
|
328
350
|
var posixPath = getPosixPath(context.specPath);
|
|
329
351
|
var fullNameBase = projectName ? "".concat(projectName, ":").concat(posixPath) : posixPath;
|
|
@@ -331,28 +353,28 @@ export class AllureCypress {
|
|
|
331
353
|
var titlePath = posixPath.split("/").concat(context.suiteNames);
|
|
332
354
|
return this.allureRuntime.startTest(_objectSpread({
|
|
333
355
|
stage: Stage.RUNNING,
|
|
334
|
-
labels: [getLanguageLabel(), getFrameworkLabel("cypress"), ...
|
|
356
|
+
labels: [getLanguageLabel(), getFrameworkLabel("cypress"), ...metadataLabels, ...getEnvironmentLabels(), getHostLabel(), getThreadLabel(), getPackageLabel(context.specPath), getFallbackTestCaseIdLabel(md5(legacyFullName))],
|
|
335
357
|
fullName: "".concat(fullNameBase, "#").concat(fullNameSuffix),
|
|
336
358
|
titlePath: projectName ? [projectName, ...titlePath] : titlePath
|
|
337
359
|
}, otherTestData), scopes);
|
|
338
360
|
});
|
|
339
|
-
_classPrivateFieldInitSpec(this, _failHookAndTest, (context,
|
|
361
|
+
_classPrivateFieldInitSpec(this, _failHookAndTest, (context, _ref9) => {
|
|
340
362
|
var {
|
|
341
363
|
data: {
|
|
342
364
|
status,
|
|
343
365
|
statusDetails
|
|
344
366
|
}
|
|
345
|
-
} =
|
|
367
|
+
} = _ref9;
|
|
346
368
|
var setError = result => Object.assign(result, {
|
|
347
369
|
status,
|
|
348
370
|
statusDetails
|
|
349
371
|
});
|
|
350
372
|
var fixtureUuid = context.fixture;
|
|
351
373
|
if (fixtureUuid) {
|
|
352
|
-
var
|
|
374
|
+
var _classPrivateFieldGet3;
|
|
353
375
|
this.allureRuntime.updateFixture(fixtureUuid, setError);
|
|
354
376
|
this.allureRuntime.applyGlobalRuntimeMessages([toGlobalErrorMessage({
|
|
355
|
-
name: (
|
|
377
|
+
name: (_classPrivateFieldGet3 = _classPrivateFieldGet(_fixtureNames, this).get(fixtureUuid)) !== null && _classPrivateFieldGet3 !== void 0 ? _classPrivateFieldGet3 : "hook",
|
|
356
378
|
details: statusDetails,
|
|
357
379
|
status
|
|
358
380
|
})]);
|
|
@@ -371,12 +393,12 @@ export class AllureCypress {
|
|
|
371
393
|
});
|
|
372
394
|
}
|
|
373
395
|
});
|
|
374
|
-
_classPrivateFieldInitSpec(this, _skipTest, (context,
|
|
396
|
+
_classPrivateFieldInitSpec(this, _skipTest, (context, _ref0) => {
|
|
375
397
|
var {
|
|
376
398
|
data: {
|
|
377
399
|
statusDetails
|
|
378
400
|
}
|
|
379
|
-
} =
|
|
401
|
+
} = _ref0;
|
|
380
402
|
var testUuid = context.test;
|
|
381
403
|
if (testUuid) {
|
|
382
404
|
this.allureRuntime.updateTest(testUuid, testResult => {
|
|
@@ -387,7 +409,7 @@ export class AllureCypress {
|
|
|
387
409
|
});
|
|
388
410
|
}
|
|
389
411
|
});
|
|
390
|
-
_classPrivateFieldInitSpec(this, _addSkippedTest, (context,
|
|
412
|
+
_classPrivateFieldInitSpec(this, _addSkippedTest, (context, _ref1) => {
|
|
391
413
|
var {
|
|
392
414
|
data: {
|
|
393
415
|
fullNameSuffix,
|
|
@@ -395,8 +417,8 @@ export class AllureCypress {
|
|
|
395
417
|
duration,
|
|
396
418
|
retries
|
|
397
419
|
}
|
|
398
|
-
} =
|
|
399
|
-
testResultData = _objectWithoutProperties(
|
|
420
|
+
} = _ref1,
|
|
421
|
+
testResultData = _objectWithoutProperties(_ref1.data, _excluded3);
|
|
400
422
|
// Tests skipped because of a hook error may share all suites of the current context
|
|
401
423
|
// or just a part thereof (if it's from a sibling suite).
|
|
402
424
|
var scopes = suites.map(s => context.suiteIdToScope.get(s)).filter(s => Boolean(s));
|
|
@@ -404,25 +426,25 @@ export class AllureCypress {
|
|
|
404
426
|
_classPrivateFieldGet(_stopExistingTestResult, this).call(this, testUuid, {
|
|
405
427
|
duration,
|
|
406
428
|
retries
|
|
407
|
-
});
|
|
429
|
+
}, context.suiteNames);
|
|
408
430
|
this.allureRuntime.writeTest(testUuid);
|
|
409
431
|
});
|
|
410
|
-
_classPrivateFieldInitSpec(this, _stopTest, (context,
|
|
432
|
+
_classPrivateFieldInitSpec(this, _stopTest, (context, _ref10) => {
|
|
411
433
|
var {
|
|
412
434
|
data
|
|
413
|
-
} =
|
|
435
|
+
} = _ref10;
|
|
414
436
|
var testUuid = context.test;
|
|
415
437
|
if (testUuid) {
|
|
416
|
-
_classPrivateFieldGet(_stopExistingTestResult, this).call(this, testUuid, data);
|
|
438
|
+
_classPrivateFieldGet(_stopExistingTestResult, this).call(this, testUuid, data, context.suiteNames);
|
|
417
439
|
this.allureRuntime.writeTest(testUuid);
|
|
418
440
|
context.test = undefined;
|
|
419
441
|
}
|
|
420
442
|
});
|
|
421
|
-
_classPrivateFieldInitSpec(this, _stopExistingTestResult, (testUuid,
|
|
443
|
+
_classPrivateFieldInitSpec(this, _stopExistingTestResult, (testUuid, _ref11, suiteNames) => {
|
|
422
444
|
var {
|
|
423
445
|
retries,
|
|
424
446
|
duration
|
|
425
|
-
} =
|
|
447
|
+
} = _ref11;
|
|
426
448
|
this.allureRuntime.updateTest(testUuid, testResult => {
|
|
427
449
|
if (retries > 0) {
|
|
428
450
|
testResult.parameters.push({
|
|
@@ -436,19 +458,20 @@ export class AllureCypress {
|
|
|
436
458
|
this.allureRuntime.stopTest(testUuid, {
|
|
437
459
|
duration
|
|
438
460
|
});
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
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
|
+
});
|
|
443
466
|
});
|
|
444
467
|
_classPrivateFieldInitSpec(this, _fixFixtureStepStops, fixtureUuid => {
|
|
445
468
|
this.allureRuntime.updateFixture(fixtureUuid, _classPrivateFieldGet(_fixStepStops, this));
|
|
446
469
|
});
|
|
447
|
-
_classPrivateFieldInitSpec(this, _fixStepStops,
|
|
470
|
+
_classPrivateFieldInitSpec(this, _fixStepStops, _ref12 => {
|
|
448
471
|
var {
|
|
449
472
|
stop,
|
|
450
473
|
steps = []
|
|
451
|
-
} =
|
|
474
|
+
} = _ref12;
|
|
452
475
|
if (stop) {
|
|
453
476
|
// In some circumstances, steps becomes dangling and are stopped at the test end/hook end events, which happen
|
|
454
477
|
// chronologically after the test or fixture ends. This leads to the steps' stop time being greater than the one
|
|
@@ -464,11 +487,11 @@ export class AllureCypress {
|
|
|
464
487
|
}
|
|
465
488
|
}
|
|
466
489
|
});
|
|
467
|
-
_classPrivateFieldInitSpec(this, _startStep, (context,
|
|
490
|
+
_classPrivateFieldInitSpec(this, _startStep, (context, _ref13) => {
|
|
468
491
|
var {
|
|
469
492
|
id
|
|
470
|
-
} =
|
|
471
|
-
properties = _objectWithoutProperties(
|
|
493
|
+
} = _ref13,
|
|
494
|
+
properties = _objectWithoutProperties(_ref13, _excluded4);
|
|
472
495
|
var rootUuid = _classPrivateFieldGet(_resolveRootUuid, this).call(this, context);
|
|
473
496
|
if (rootUuid) {
|
|
474
497
|
var stepUuid = this.allureRuntime.startStep(rootUuid, undefined, properties);
|
|
@@ -477,12 +500,12 @@ export class AllureCypress {
|
|
|
477
500
|
}
|
|
478
501
|
}
|
|
479
502
|
});
|
|
480
|
-
_classPrivateFieldInitSpec(this, _stopStep, (context,
|
|
503
|
+
_classPrivateFieldInitSpec(this, _stopStep, (context, _ref14) => {
|
|
481
504
|
var {
|
|
482
505
|
id,
|
|
483
506
|
stop
|
|
484
|
-
} =
|
|
485
|
-
properties = _objectWithoutProperties(
|
|
507
|
+
} = _ref14,
|
|
508
|
+
properties = _objectWithoutProperties(_ref14, _excluded5);
|
|
486
509
|
var stepUuid = context.stepsByFrontEndId.get(id);
|
|
487
510
|
if (stepUuid) {
|
|
488
511
|
this.allureRuntime.updateStep(stepUuid, r => {
|
|
@@ -493,11 +516,11 @@ export class AllureCypress {
|
|
|
493
516
|
});
|
|
494
517
|
}
|
|
495
518
|
});
|
|
496
|
-
_classPrivateFieldInitSpec(this, _finalizeStep, (context,
|
|
519
|
+
_classPrivateFieldInitSpec(this, _finalizeStep, (context, _ref15) => {
|
|
497
520
|
var {
|
|
498
521
|
id
|
|
499
|
-
} =
|
|
500
|
-
properties = _objectWithoutProperties(
|
|
522
|
+
} = _ref15,
|
|
523
|
+
properties = _objectWithoutProperties(_ref15, _excluded6);
|
|
501
524
|
var stepUuid = context.stepsByFrontEndId.get(id);
|
|
502
525
|
if (stepUuid) {
|
|
503
526
|
this.allureRuntime.updateStep(stepUuid, r => {
|
|
@@ -508,6 +531,25 @@ export class AllureCypress {
|
|
|
508
531
|
});
|
|
509
532
|
_classPrivateFieldInitSpec(this, _applyRuntimeApiMessages, (context, message) => {
|
|
510
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
|
+
}
|
|
511
553
|
if (rootUuid) {
|
|
512
554
|
this.allureRuntime.applyRuntimeMessages(rootUuid, [message]);
|
|
513
555
|
} else {
|
|
@@ -581,7 +623,7 @@ export class AllureCypress {
|
|
|
581
623
|
resultsDir,
|
|
582
624
|
videoOnFailOnly = false
|
|
583
625
|
} = config,
|
|
584
|
-
rest = _objectWithoutProperties(config,
|
|
626
|
+
rest = _objectWithoutProperties(config, _excluded8);
|
|
585
627
|
this.videoOnFailOnly = videoOnFailOnly;
|
|
586
628
|
this.allureRuntime = new ReporterRuntime(_objectSpread({
|
|
587
629
|
writer: createDefaultWriter({
|
package/dist/esm/reporter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.js","names":["ContentType","Stage","Status","toGlobalErrorMessage","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","details","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"],"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 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({\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 });\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"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,KAAK,EAAEC,MAAM,QAAQ,mBAAmB;AAG9D,SAASC,oBAAoB,QAAQ,uBAAuB;AAC5D,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,oBAAAJ,OAAA;AAAA,IAAAK,kBAAA,oBAAAL,OAAA;AAAA,IAAAM,UAAA,oBAAAN,OAAA;AAAA,IAAAO,oBAAA,oBAAAP,OAAA;AAAA,IAAAQ,UAAA,oBAAAR,OAAA;AAAA,IAAAS,SAAA,oBAAAT,OAAA;AAAA,IAAAU,UAAA,oBAAAV,OAAA;AAAA,IAAAW,iBAAA,oBAAAX,OAAA;AAAA,IAAAY,gBAAA,oBAAAZ,OAAA;AAAA,IAAAa,SAAA,oBAAAb,OAAA;AAAA,IAAAc,SAAA,oBAAAd,OAAA;AAAA,IAAAe,eAAA,oBAAAf,OAAA;AAAA,IAAAgB,SAAA,oBAAAhB,OAAA;AAA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AG,EAAE;IACrB;IACAJ,aAAa,CAACI,GAAG,CAACD,MAAM,GAAGF,WAAW;EACxC;EACA,OAAOD,aAAa;AACtB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMK,aAAa,GAAGA,CAC3B/K,EAAwB,EACxB0K,aAA2C,EAC3Cb,YAAkC,KAC/B;EACH;EACA,IAAI,CAACA,YAAY,IAAIa,aAAa,IAAI,EAAE,KAAK,IAAIA,aAAa,CAAC,EAAE;IAC/Db,YAAY,GAAGa,aAAoC;EACrD;EAEA,IAAMM,gBAAgB,GAAGN,aAAa,IAAI,KAAK,IAAIA,aAAa;EAEhE,IAAMO,qBAAqB,GAAG,IAAI1L,aAAa,CAACsK,YAAY,CAAC;EAC7DoB,qBAAqB,CAACC,eAAe,CAAClL,EAAE,CAAC;EAEzC,IAAIgL,gBAAgB,EAAE;IACpBP,sBAAsB,CAACC,aAAa,EAAEb,YAAY,CAAC;EACrD;EAEA,OAAOoB,qBAAqB;AAC9B,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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