Skip to content

[Feature] Show RepeatEachIndex in HTML Reporter and other reporters #26644

Open
@mxschmitt

Description

@mxschmitt

Imagine I debug a flaky test, I do then --repeat-each=20. I then see that its failing 2/20 times. I would love to know which test-results directory belongs to this test, but neither list nor html reporter help me with that

Workaround:

test.info().annotations.push({ type: 'repeat-index', description: test.info().repeatEachIndex.toString() });

at the beginning of the test. This gets then surfaced in HTML Reporter and I know which test-results sub-directory to look for.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions