Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Allow adding tags to tests on the fly #30286

Closed
AdamOakman opened this issue Apr 8, 2024 · 3 comments
Closed

[Feature]: Allow adding tags to tests on the fly #30286

AdamOakman opened this issue Apr 8, 2024 · 3 comments

Comments

@AdamOakman
Copy link

馃殌 Feature Request

After introducing new awesome tag handling it would be handy to be able to add tags for tests during test execution - for example in the fixtures depending on what happened during test

Example

Example use case: A test is run and passed but during test execution there were console errors in the browser - I would like to mark such test with additional "consoleError" tag to be able to easily filter such tests in HTML report by this tag.

Motivation

This might potentially be beneficial in more use cases for marking tests with additional labels dependent on what happens during test execution - and then for easily filtering them in reports (other unexpected non-breaking events but not necessarily desired)

@mxschmitt
Copy link
Member

Tags are not intended for that, we recommend using annotations instead. See here.

@AdamOakman
Copy link
Author

@mxschmitt is there any possiblity to filter tests by annotations in HTML report like it is possible by tags?

@mxschmitt
Copy link
Member

There is this open PR which does implement what you want I believe: #30094

(I recommend subscribing to it to see if it gets merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants