allure-cypress 3.15.0 → 3.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/cjs/browser/commandLog.js +44 -57
- package/dist/cjs/browser/commandLog.js.map +1 -1
- package/dist/cjs/browser/events/cypress.js +3 -4
- package/dist/cjs/browser/events/cypress.js.map +1 -1
- package/dist/cjs/browser/lifecycle.js +1 -0
- package/dist/cjs/browser/lifecycle.js.map +1 -1
- package/dist/cjs/browser/patching.js +16 -9
- package/dist/cjs/browser/patching.js.map +1 -1
- package/dist/cjs/browser/runtime.js +22 -4
- package/dist/cjs/browser/runtime.js.map +1 -1
- package/dist/cjs/browser/serialize.js +4 -6
- package/dist/cjs/browser/serialize.js.map +1 -1
- package/dist/cjs/browser/steps.js +11 -5
- package/dist/cjs/browser/steps.js.map +1 -1
- package/dist/cjs/browser/testplan.js +13 -11
- package/dist/cjs/browser/testplan.js.map +1 -1
- package/dist/cjs/browser/utils.js +7 -9
- package/dist/cjs/browser/utils.js.map +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/reporter.js +56 -98
- package/dist/cjs/reporter.js.map +1 -1
- package/dist/esm/browser/commandLog.js +44 -57
- package/dist/esm/browser/commandLog.js.map +1 -1
- package/dist/esm/browser/events/cypress.js +3 -4
- package/dist/esm/browser/events/cypress.js.map +1 -1
- package/dist/esm/browser/lifecycle.js +1 -0
- package/dist/esm/browser/lifecycle.js.map +1 -1
- package/dist/esm/browser/patching.js +16 -9
- package/dist/esm/browser/patching.js.map +1 -1
- package/dist/esm/browser/runtime.js +22 -4
- package/dist/esm/browser/runtime.js.map +1 -1
- package/dist/esm/browser/serialize.js +4 -6
- package/dist/esm/browser/serialize.js.map +1 -1
- package/dist/esm/browser/steps.js +11 -5
- package/dist/esm/browser/steps.js.map +1 -1
- package/dist/esm/browser/testplan.js +13 -11
- package/dist/esm/browser/testplan.js.map +1 -1
- package/dist/esm/browser/utils.js +7 -9
- package/dist/esm/browser/utils.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +4 -4
- package/dist/esm/reporter.js +56 -98
- package/dist/esm/reporter.js.map +1 -1
- package/dist/types/browser/lifecycle.d.ts +1 -1
- package/package.json +13 -9
package/dist/cjs/reporter.js
CHANGED
|
@@ -97,9 +97,7 @@ class AllureCypress {
|
|
|
97
97
|
*/
|
|
98
98
|
_defineProperty(this, "onAfterScreenshot", _ref => {
|
|
99
99
|
var _classPrivateFieldGet2;
|
|
100
|
-
var
|
|
101
|
-
path
|
|
102
|
-
} = _ref;
|
|
100
|
+
var path = _ref.path;
|
|
103
101
|
// Snapshot plugins can move or delete the file before the browser flushes
|
|
104
102
|
// its attachment message. Preserve each capture, including overwritten paths.
|
|
105
103
|
var reference = this.allureRuntime.emitAttachment(path, {
|
|
@@ -181,10 +179,8 @@ class AllureCypress {
|
|
|
181
179
|
}
|
|
182
180
|
});
|
|
183
181
|
_classPrivateFieldInitSpec(this, _applyAllureCypressMessages, _ref2 => {
|
|
184
|
-
var
|
|
185
|
-
|
|
186
|
-
absolutePath
|
|
187
|
-
} = _ref2;
|
|
182
|
+
var messages = _ref2.messages,
|
|
183
|
+
absolutePath = _ref2.absolutePath;
|
|
188
184
|
messages.forEach(message => {
|
|
189
185
|
if (message.type === "cypress_run_start") {
|
|
190
186
|
_classPrivateFieldGet(_startRun, this).call(this, absolutePath);
|
|
@@ -246,13 +242,10 @@ class AllureCypress {
|
|
|
246
242
|
}
|
|
247
243
|
});
|
|
248
244
|
_classPrivateFieldInitSpec(this, _startSuite, (context, _ref3) => {
|
|
249
|
-
var
|
|
250
|
-
data
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
root
|
|
254
|
-
}
|
|
255
|
-
} = _ref3;
|
|
245
|
+
var _ref3$data = _ref3.data,
|
|
246
|
+
id = _ref3$data.id,
|
|
247
|
+
name = _ref3$data.name,
|
|
248
|
+
root = _ref3$data.root;
|
|
256
249
|
_classPrivateFieldGet(_pushNewSuiteScope, this).call(this, context, id);
|
|
257
250
|
if (!root) {
|
|
258
251
|
_classPrivateFieldGet(_emitPreviousTestScope, this).call(this, context);
|
|
@@ -267,11 +260,7 @@ class AllureCypress {
|
|
|
267
260
|
return scope;
|
|
268
261
|
});
|
|
269
262
|
_classPrivateFieldInitSpec(this, _stopSuite, (context, _ref4) => {
|
|
270
|
-
var
|
|
271
|
-
data: {
|
|
272
|
-
root
|
|
273
|
-
}
|
|
274
|
-
} = _ref4;
|
|
263
|
+
var root = _ref4.data.root;
|
|
275
264
|
_classPrivateFieldGet(_emitPreviousTestScope, this).call(this, context);
|
|
276
265
|
if (!root) {
|
|
277
266
|
context.suiteNames.pop();
|
|
@@ -290,14 +279,11 @@ class AllureCypress {
|
|
|
290
279
|
}
|
|
291
280
|
});
|
|
292
281
|
_classPrivateFieldInitSpec(this, _startHook, (context, _ref5) => {
|
|
293
|
-
var
|
|
294
|
-
data
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
start
|
|
299
|
-
}
|
|
300
|
-
} = _ref5;
|
|
282
|
+
var _ref5$data = _ref5.data,
|
|
283
|
+
name = _ref5$data.name,
|
|
284
|
+
scopeType = _ref5$data.scopeType,
|
|
285
|
+
position = _ref5$data.position,
|
|
286
|
+
start = _ref5$data.start;
|
|
301
287
|
var isEach = scopeType === "each";
|
|
302
288
|
var isAfterEach = position === "after" && isEach;
|
|
303
289
|
if (!isAfterEach) {
|
|
@@ -316,11 +302,7 @@ class AllureCypress {
|
|
|
316
302
|
}
|
|
317
303
|
});
|
|
318
304
|
_classPrivateFieldInitSpec(this, _stopHook, (context, _ref6) => {
|
|
319
|
-
var
|
|
320
|
-
data: {
|
|
321
|
-
duration
|
|
322
|
-
}
|
|
323
|
-
} = _ref6;
|
|
305
|
+
var duration = _ref6.data.duration;
|
|
324
306
|
var fixtureUuid = context.fixture;
|
|
325
307
|
if (fixtureUuid) {
|
|
326
308
|
this.allureRuntime.updateFixture(fixtureUuid, fixture => {
|
|
@@ -336,21 +318,17 @@ class AllureCypress {
|
|
|
336
318
|
}
|
|
337
319
|
});
|
|
338
320
|
_classPrivateFieldInitSpec(this, _startTest, (context, _ref7) => {
|
|
339
|
-
var
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
} = _ref7,
|
|
344
|
-
testResultData = _objectWithoutProperties(_ref7.data, _excluded);
|
|
321
|
+
var _ref7$data = _ref7.data,
|
|
322
|
+
fullNameSuffix = _ref7$data.fullNameSuffix,
|
|
323
|
+
testResultData = _objectWithoutProperties(_ref7$data, _excluded);
|
|
345
324
|
_classPrivateFieldGet(_emitPreviousTestScope, this).call(this, context);
|
|
346
325
|
var testScope = this.allureRuntime.startScope();
|
|
347
326
|
context.testScope = testScope;
|
|
348
327
|
context.test = _classPrivateFieldGet(_addNewTestResult, this).call(this, context, fullNameSuffix, testResultData, [context.videoScope, ...context.suiteScopes, testScope]);
|
|
349
328
|
});
|
|
350
329
|
_classPrivateFieldInitSpec(this, _addNewTestResult, (context, fullNameSuffix, _ref8, scopes) => {
|
|
351
|
-
var
|
|
352
|
-
|
|
353
|
-
} = _ref8,
|
|
330
|
+
var _ref8$labels = _ref8.labels,
|
|
331
|
+
metadataLabels = _ref8$labels === void 0 ? [] : _ref8$labels,
|
|
354
332
|
otherTestData = _objectWithoutProperties(_ref8, _excluded2);
|
|
355
333
|
var projectName = (0, _reporter.getProjectName)();
|
|
356
334
|
var posixPath = (0, _reporter.getPosixPath)(context.specPath);
|
|
@@ -365,12 +343,9 @@ class AllureCypress {
|
|
|
365
343
|
}, otherTestData), scopes);
|
|
366
344
|
});
|
|
367
345
|
_classPrivateFieldInitSpec(this, _failHookAndTest, (context, _ref9) => {
|
|
368
|
-
var
|
|
369
|
-
data
|
|
370
|
-
|
|
371
|
-
statusDetails
|
|
372
|
-
}
|
|
373
|
-
} = _ref9;
|
|
346
|
+
var _ref9$data = _ref9.data,
|
|
347
|
+
status = _ref9$data.status,
|
|
348
|
+
statusDetails = _ref9$data.statusDetails;
|
|
374
349
|
var setError = result => Object.assign(result, {
|
|
375
350
|
status,
|
|
376
351
|
statusDetails
|
|
@@ -400,11 +375,7 @@ class AllureCypress {
|
|
|
400
375
|
}
|
|
401
376
|
});
|
|
402
377
|
_classPrivateFieldInitSpec(this, _skipTest, (context, _ref0) => {
|
|
403
|
-
var
|
|
404
|
-
data: {
|
|
405
|
-
statusDetails
|
|
406
|
-
}
|
|
407
|
-
} = _ref0;
|
|
378
|
+
var statusDetails = _ref0.data.statusDetails;
|
|
408
379
|
var testUuid = context.test;
|
|
409
380
|
if (testUuid) {
|
|
410
381
|
this.allureRuntime.updateTest(testUuid, testResult => {
|
|
@@ -416,15 +387,12 @@ class AllureCypress {
|
|
|
416
387
|
}
|
|
417
388
|
});
|
|
418
389
|
_classPrivateFieldInitSpec(this, _addSkippedTest, (context, _ref1) => {
|
|
419
|
-
var
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}
|
|
426
|
-
} = _ref1,
|
|
427
|
-
testResultData = _objectWithoutProperties(_ref1.data, _excluded3);
|
|
390
|
+
var _ref1$data = _ref1.data,
|
|
391
|
+
fullNameSuffix = _ref1$data.fullNameSuffix,
|
|
392
|
+
suites = _ref1$data.suites,
|
|
393
|
+
duration = _ref1$data.duration,
|
|
394
|
+
retries = _ref1$data.retries,
|
|
395
|
+
testResultData = _objectWithoutProperties(_ref1$data, _excluded3);
|
|
428
396
|
// Tests skipped because of a hook error may share all suites of the current context
|
|
429
397
|
// or just a part thereof (if it's from a sibling suite).
|
|
430
398
|
var scopes = suites.map(s => context.suiteIdToScope.get(s)).filter(s => Boolean(s));
|
|
@@ -436,9 +404,7 @@ class AllureCypress {
|
|
|
436
404
|
this.allureRuntime.writeTest(testUuid);
|
|
437
405
|
});
|
|
438
406
|
_classPrivateFieldInitSpec(this, _stopTest, (context, _ref10) => {
|
|
439
|
-
var
|
|
440
|
-
data
|
|
441
|
-
} = _ref10;
|
|
407
|
+
var data = _ref10.data;
|
|
442
408
|
var testUuid = context.test;
|
|
443
409
|
if (testUuid) {
|
|
444
410
|
_classPrivateFieldGet(_stopExistingTestResult, this).call(this, testUuid, data, context.suiteNames);
|
|
@@ -447,10 +413,8 @@ class AllureCypress {
|
|
|
447
413
|
}
|
|
448
414
|
});
|
|
449
415
|
_classPrivateFieldInitSpec(this, _stopExistingTestResult, (testUuid, _ref11, suiteNames) => {
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
duration
|
|
453
|
-
} = _ref11;
|
|
416
|
+
var retries = _ref11.retries,
|
|
417
|
+
duration = _ref11.duration;
|
|
454
418
|
this.allureRuntime.updateTest(testUuid, testResult => {
|
|
455
419
|
if (retries > 0) {
|
|
456
420
|
testResult.parameters.push({
|
|
@@ -474,10 +438,9 @@ class AllureCypress {
|
|
|
474
438
|
this.allureRuntime.updateFixture(fixtureUuid, _classPrivateFieldGet(_fixStepStops, this));
|
|
475
439
|
});
|
|
476
440
|
_classPrivateFieldInitSpec(this, _fixStepStops, _ref12 => {
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
steps = []
|
|
480
|
-
} = _ref12;
|
|
441
|
+
var stop = _ref12.stop,
|
|
442
|
+
_ref12$steps = _ref12.steps,
|
|
443
|
+
steps = _ref12$steps === void 0 ? [] : _ref12$steps;
|
|
481
444
|
if (stop) {
|
|
482
445
|
// In some circumstances, steps becomes dangling and are stopped at the test end/hook end events, which happen
|
|
483
446
|
// chronologically after the test or fixture ends. This leads to the steps' stop time being greater than the one
|
|
@@ -494,9 +457,7 @@ class AllureCypress {
|
|
|
494
457
|
}
|
|
495
458
|
});
|
|
496
459
|
_classPrivateFieldInitSpec(this, _startStep, (context, _ref13) => {
|
|
497
|
-
var
|
|
498
|
-
id
|
|
499
|
-
} = _ref13,
|
|
460
|
+
var id = _ref13.id,
|
|
500
461
|
properties = _objectWithoutProperties(_ref13, _excluded4);
|
|
501
462
|
var rootUuid = _classPrivateFieldGet(_resolveRootUuid, this).call(this, context);
|
|
502
463
|
if (rootUuid) {
|
|
@@ -507,10 +468,8 @@ class AllureCypress {
|
|
|
507
468
|
}
|
|
508
469
|
});
|
|
509
470
|
_classPrivateFieldInitSpec(this, _stopStep, (context, _ref14) => {
|
|
510
|
-
var
|
|
511
|
-
|
|
512
|
-
stop
|
|
513
|
-
} = _ref14,
|
|
471
|
+
var id = _ref14.id,
|
|
472
|
+
stop = _ref14.stop,
|
|
514
473
|
properties = _objectWithoutProperties(_ref14, _excluded5);
|
|
515
474
|
var stepUuid = context.stepsByFrontEndId.get(id);
|
|
516
475
|
if (stepUuid) {
|
|
@@ -523,9 +482,7 @@ class AllureCypress {
|
|
|
523
482
|
}
|
|
524
483
|
});
|
|
525
484
|
_classPrivateFieldInitSpec(this, _finalizeStep, (context, _ref15) => {
|
|
526
|
-
var
|
|
527
|
-
id
|
|
528
|
-
} = _ref15,
|
|
485
|
+
var id = _ref15.id,
|
|
529
486
|
properties = _objectWithoutProperties(_ref15, _excluded6);
|
|
530
487
|
var stepUuid = context.stepsByFrontEndId.get(id);
|
|
531
488
|
if (stepUuid) {
|
|
@@ -539,10 +496,8 @@ class AllureCypress {
|
|
|
539
496
|
var rootUuid = _classPrivateFieldGet(_resolveRootUuid, this).call(this, context);
|
|
540
497
|
if (message.type === "attachment_path") {
|
|
541
498
|
var _message$data = message.data,
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
name
|
|
545
|
-
} = _message$data,
|
|
499
|
+
path = _message$data.path,
|
|
500
|
+
name = _message$data.name,
|
|
546
501
|
options = _objectWithoutProperties(_message$data, _excluded7);
|
|
547
502
|
var references = _classPrivateFieldGet(_screenshotReferencesByPath, this).get(path);
|
|
548
503
|
var reference = references === null || references === void 0 ? void 0 : references.shift();
|
|
@@ -625,10 +580,9 @@ class AllureCypress {
|
|
|
625
580
|
};
|
|
626
581
|
this.specContextByAbsolutePath.set(absolutePath, context);
|
|
627
582
|
});
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
} = config,
|
|
583
|
+
var resultsDir = config.resultsDir,
|
|
584
|
+
_config$videoOnFailOn = config.videoOnFailOnly,
|
|
585
|
+
videoOnFailOnly = _config$videoOnFailOn === void 0 ? false : _config$videoOnFailOn,
|
|
632
586
|
rest = _objectWithoutProperties(config, _excluded8);
|
|
633
587
|
this.videoOnFailOnly = videoOnFailOnly;
|
|
634
588
|
this.allureRuntime = new _reporter.ReporterRuntime(_objectSpread({
|
|
@@ -643,7 +597,9 @@ var createRuntimeState = allureConfig => ({
|
|
|
643
597
|
config: getRuntimeConfigDefaults(allureConfig),
|
|
644
598
|
initialized: false,
|
|
645
599
|
messages: [],
|
|
646
|
-
testPlan: (0, _reporter.parseTestPlan)(
|
|
600
|
+
testPlan: (0, _reporter.parseTestPlan)({
|
|
601
|
+
enableExcludedTests: true
|
|
602
|
+
}),
|
|
647
603
|
projectDir: (0, _reporter.getProjectRoot)(),
|
|
648
604
|
projectName: (0, _reporter.getProjectName)(),
|
|
649
605
|
stepStack: [],
|
|
@@ -651,13 +607,15 @@ var createRuntimeState = allureConfig => ({
|
|
|
651
607
|
nextApiStepId: 0
|
|
652
608
|
});
|
|
653
609
|
var getRuntimeConfigDefaults = function getRuntimeConfigDefaults() {
|
|
654
|
-
var
|
|
655
|
-
stepsFromCommands
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
610
|
+
var _ref16 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _utils.DEFAULT_RUNTIME_CONFIG,
|
|
611
|
+
_ref16$stepsFromComma = _ref16.stepsFromCommands,
|
|
612
|
+
_ref16$stepsFromComma2 = _ref16$stepsFromComma === void 0 ? _utils.DEFAULT_RUNTIME_CONFIG.stepsFromCommands : _ref16$stepsFromComma,
|
|
613
|
+
_ref16$stepsFromComma3 = _ref16$stepsFromComma2.enabled,
|
|
614
|
+
enabled = _ref16$stepsFromComma3 === void 0 ? _utils.DEFAULT_RUNTIME_CONFIG.stepsFromCommands.enabled : _ref16$stepsFromComma3,
|
|
615
|
+
_ref16$stepsFromComma4 = _ref16$stepsFromComma2.maxArgumentLength,
|
|
616
|
+
maxArgumentLength = _ref16$stepsFromComma4 === void 0 ? _utils.DEFAULT_RUNTIME_CONFIG.stepsFromCommands.maxArgumentLength : _ref16$stepsFromComma4,
|
|
617
|
+
_ref16$stepsFromComma5 = _ref16$stepsFromComma2.maxArgumentDepth,
|
|
618
|
+
maxArgumentDepth = _ref16$stepsFromComma5 === void 0 ? _utils.DEFAULT_RUNTIME_CONFIG.stepsFromCommands.maxArgumentDepth : _ref16$stepsFromComma5;
|
|
661
619
|
return {
|
|
662
620
|
stepsFromCommands: {
|
|
663
621
|
enabled,
|
package/dist/cjs/reporter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.js","names":["_allureJsCommons","require","_sdk","_reporter","_utils","_excluded","_excluded2","_excluded3","_excluded4","_excluded5","_excluded6","_excluded7","_excluded8","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_objectWithoutProperties","i","_objectWithoutPropertiesLoose","n","indexOf","propertyIsEnumerable","call","hasOwnProperty","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","set","has","TypeError","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","String","Number","_classPrivateFieldGet","s","get","_assertClassBrand","_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","undefined","Map","on","reportAllureCypressSpecMessages","args","reportFinalAllureCypressSpecMessages","isInteractive","endSpec","absolutePath","onAfterScreenshot","onAfterSpec","onAfterRun","_ref","_classPrivateFieldGet2","path","reference","allureRuntime","emitAttachment","contentType","ContentType","PNG","references","spec","results","_results$video","absolute","video","endRun","writeEnvironmentInfo","writeCategoriesDefinitions","specAbsolutePath","cypressVideoPath","specContext","specContextByAbsolutePath","delete","clear","_ref2","messages","message","type","context","data","_ref3","id","name","root","suiteNames","suiteId","scope","startScope","suiteScopes","suiteIdToScope","suiteScopeToId","_ref4","pop","writeScope","_ref5","scopeType","position","start","isEach","isAfterEach","testScope","last","fixture","startFixture","status","_ref6","duration","fixtureUuid","updateFixture","_fixture$status","Status","PASSED","stopFixture","_ref7","fullNameSuffix","testResultData","test","videoScope","_ref8","scopes","labels","metadataLabels","otherTestData","projectName","getProjectName","posixPath","getPosixPath","specPath","fullNameBase","concat","legacyFullName","titlePath","split","startTest","stage","Stage","RUNNING","getLanguageLabel","getFrameworkLabel","getEnvironmentLabels","getHostLabel","getThreadLabel","getPackageLabel","getFallbackTestCaseIdLabel","md5","fullName","_ref9","statusDetails","setError","result","assign","_classPrivateFieldGet3","applyGlobalRuntimeMessages","toGlobalErrorMessage","details","testUuid","updateTest","failed","testResult","_ref0","SKIPPED","_ref1","suites","retries","map","Boolean","writeTest","_ref10","_ref11","parameters","toString","excluded","FINISHED","stopTest","getDefaultSuiteLabels","_ref12","stop","steps","step","at","_ref13","properties","rootUuid","stepUuid","startStep","stepsByFrontEndId","_ref14","updateStep","stopStep","_ref15","_message$data","options","shift","writeAttachment","applyRuntimeMessages","_context$fixture","shouldVideoBeAttached","videoOnFailOnly","MP4","getRelativePath","resultsDir","rest","ReporterRuntime","writer","createDefaultWriter","exports","createRuntimeState","allureConfig","getRuntimeConfigDefaults","initialized","testPlan","parseTestPlan","projectDir","getProjectRoot","stepStack","stepsToFinalize","nextApiStepId","stepsFromCommands","enabled","DEFAULT_RUNTIME_CONFIG","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,IAAAA,gBAAA,GAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAuCA,IAAAG,MAAA,GAAAH,OAAA;AAA0D,IAAAI,SAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;AAAA,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QA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
1
|
+
{"version":3,"file":"reporter.js","names":["_allureJsCommons","require","_sdk","_reporter","_utils","_excluded","_excluded2","_excluded3","_excluded4","_excluded5","_excluded6","_excluded7","_excluded8","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_objectWithoutProperties","i","_objectWithoutPropertiesLoose","n","indexOf","propertyIsEnumerable","call","hasOwnProperty","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","set","has","TypeError","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","String","Number","_classPrivateFieldGet","s","get","_assertClassBrand","_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","undefined","Map","on","reportAllureCypressSpecMessages","args","reportFinalAllureCypressSpecMessages","isInteractive","endSpec","absolutePath","onAfterScreenshot","onAfterSpec","onAfterRun","_ref","_classPrivateFieldGet2","path","reference","allureRuntime","emitAttachment","contentType","ContentType","PNG","references","spec","results","_results$video","absolute","video","endRun","writeEnvironmentInfo","writeCategoriesDefinitions","specAbsolutePath","cypressVideoPath","specContext","specContextByAbsolutePath","delete","clear","_ref2","messages","message","type","context","data","_ref3","_ref3$data","id","name","root","suiteNames","suiteId","scope","startScope","suiteScopes","suiteIdToScope","suiteScopeToId","_ref4","pop","writeScope","_ref5","_ref5$data","scopeType","position","start","isEach","isAfterEach","testScope","last","fixture","startFixture","status","_ref6","duration","fixtureUuid","updateFixture","_fixture$status","Status","PASSED","stopFixture","_ref7","_ref7$data","fullNameSuffix","testResultData","test","videoScope","_ref8","scopes","_ref8$labels","labels","metadataLabels","otherTestData","projectName","getProjectName","posixPath","getPosixPath","specPath","fullNameBase","concat","legacyFullName","titlePath","split","startTest","stage","Stage","RUNNING","getLanguageLabel","getFrameworkLabel","getEnvironmentLabels","getHostLabel","getThreadLabel","getPackageLabel","getFallbackTestCaseIdLabel","md5","fullName","_ref9","_ref9$data","statusDetails","setError","result","assign","_classPrivateFieldGet3","applyGlobalRuntimeMessages","toGlobalErrorMessage","details","testUuid","updateTest","failed","testResult","_ref0","SKIPPED","_ref1","_ref1$data","suites","retries","map","Boolean","writeTest","_ref10","_ref11","parameters","toString","excluded","FINISHED","stopTest","getDefaultSuiteLabels","_ref12","stop","_ref12$steps","steps","step","at","_ref13","properties","rootUuid","stepUuid","startStep","stepsByFrontEndId","_ref14","updateStep","stopStep","_ref15","_message$data","options","shift","writeAttachment","applyRuntimeMessages","_context$fixture","shouldVideoBeAttached","videoOnFailOnly","MP4","getRelativePath","resultsDir","_config$videoOnFailOn","rest","ReporterRuntime","writer","createDefaultWriter","exports","createRuntimeState","allureConfig","getRuntimeConfigDefaults","initialized","testPlan","parseTestPlan","enableExcludedTests","projectDir","getProjectRoot","stepStack","stepsToFinalize","nextApiStepId","_ref16","DEFAULT_RUNTIME_CONFIG","_ref16$stepsFromComma","stepsFromCommands","_ref16$stepsFromComma2","_ref16$stepsFromComma3","enabled","_ref16$stepsFromComma4","maxArgumentLength","_ref16$stepsFromComma5","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({ enableExcludedTests: true }),\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,IAAAA,gBAAA,GAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAuCA,IAAAG,MAAA,GAAAH,OAAA;AAA0D,IAAAI,SAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;AAAA,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAA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