You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 2 test classes, one inherits from another:
[AllureLabel("layer","unit")]publicclassBaseTest{// Test methods}[AllureStory("User registration")]publicclassUserRegistrationTests:BaseTest{// Test methods}
When test methods are executed, there is only "story" label in "labels" in results JSON:
I'm submitting a ...
What is the current behavior?
There are 2 test classes, one inherits from another:
When test methods are executed, there is only "story" label in "labels" in results JSON:
However, if I remove "AllureStory" like the following:
resulting JSON will have the property from the base
BaseTest
class I need:What is the expected behavior?
I want all the attributes from the base classes to be added to Allure report
What is the motivation / use case for changing the behavior?
It is convenient to have a base class for the service to provide common Allure information for the whole service or project, such as:
without the need to copy them everywhere.
Environment:
Other information
This behaviour exists because of a, bit strange, logic inside XUnits
GetCustomAttributes
method:It seems that it gets attributes from the base class only if there are no attributes in current one
The text was updated successfully, but these errors were encountered: