File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -364,8 +364,13 @@ export interface XrayOptions {
364
364
*/
365
365
status ?: {
366
366
/**
367
- * A function that returns a single status for a given combination of other statuses. It is
368
- * used to determine the final status of retried and data-driven tests.
367
+ * A function that returns a single Xray status for a given combination of Cypress statuses.
368
+ * It is used to determine the final status of retried and data-driven tests and is never
369
+ * called for tests that have only been run once.
370
+ *
371
+ * Please note that tests are grouped by the issue keys present in their `describe()` and
372
+ * `it()` titles as described
373
+ * [here](https://qytera-gmbh.github.io/projects/cypress-xray-plugin/section/guides/targetingExistingIssues/#reuse-cypress-issues).
369
374
*
370
375
* By default, the aggregation works as follows in order of mention:
371
376
*
@@ -380,7 +385,7 @@ export interface XrayOptions {
380
385
*
381
386
* @example
382
387
*
383
- * The following example defines a custom _FLAKY_ status :
388
+ * The following example defines custom `FLAKY` and `ABORTED` statuses for iterated tests :
384
389
*
385
390
* ```ts
386
391
* ({ failed, passed, pending, skipped }) => {
@@ -391,14 +396,14 @@ export interface XrayOptions {
391
396
* return "FLAKY";
392
397
* }
393
398
* if (pending > 0) {
394
- * return "TODO ";
399
+ * return "ABORTED ";
395
400
* }
396
401
* return "FAILED";
397
402
* }
398
403
* ```
399
404
*
400
- * @param args - the aggregation arguments
401
- * @returns the aggregated status
405
+ * @param args - the status aggregation arguments
406
+ * @returns the aggregated Xray status
402
407
*/
403
408
aggregate ?: ( args : {
404
409
/**
You can’t perform that action at this time.
0 commit comments