Skip to content

[Feature]: show test annotation types in html-report's testFileView #30982

Open
@ppath

Description

@ppath

🚀 Feature Request

Show test annotation types in the html report's testFileView (ie. initial test listing view). The annotation description can then be viewed inside the dedicated test case view.

My suggestion is to include the annotation type as a label, as it happens for test tags. Maybe something like:

-              <LabelsClickView labels={test.tags} />
+              <LabelsClickView labels={[
+                ...test.tags,
+                ...test.annotations.map(annotation => annotation.type),
+              ]} />

here:

<LabelsClickView labels={test.tags} />

If the annotation is being added dynamically during the failed run of a flaky test, then the label should still appear. This behavior will be consistent with that of the "image diff" and "trace" icons on flaky tests.

Example

No response

Motivation

Since the annotations can be added dynamically, we can use them for marking tests based on the run behavior. These marks can be very useful to being able to be viewed and/or filtered in the test list.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions