Which labels can be repeated multiple times? #2059
-
There are many built-in labels, and it's obvious that some can be repeated only once (like So far, I can think about this list: Based on gut feeling, I think this is the case:
Could you please provide some comments regarding this? 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are no restrictions on label duplicates in Allure. Although, for some of the labels, only the first one is considered. ( Processing the first one and not the last one was a poor design decision since it limits the possibilities to override labels, see allure-framework/allure-php-commons2#57, for example ) Besides that, some frameworks do additional logic on top of it, like in PyTest -- default suite labels (provided by PyTest reporter) will be only added to the results if no user-provided value is found. Although, users are free to add multiple suite labels if they wish. Such kind of behaviours are unclear and very hard to fix since the change will break a lot of tests for Allure Report users. As for now, the plan is to align the way we work with labels across frameworks and then address this particular issue in the next major Allure release. Besides that, Allure TestOps provides a way to change how labels are processed by creating rules (where the label value could be mapped to other entities such as issues, custom fields etc). That also works with system labels. In Allure 3, we also will introduce user-defined mappings (via configuration files) for labels (and not only the labels). Meanwhile, regarding your question:
|
Beta Was this translation helpful? Give feedback.
There are no restrictions on label duplicates in Allure. Although, for some of the labels, only the first one is considered.
( Processing the first one and not the last one was a poor design decision since it limits the possibilities to override labels, see allure-framework/allure-php-commons2#57, for example )
Besides that, some frameworks do additional logic on top of it, like in PyTest -- default suite labels (provided by PyTest reporter) will be only added to the results if no user-provided value is found. Although, users are free to add multiple suite labels if they wish. Such kind of behaviours are unclear and very hard to fix since the change will break a lot of tests for Allure Re…