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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e.FinishTestItemRequest.Description is null when Description attribute is from TestCaseSource rather then Test #86

Open
MeirsPortal opened this issue Dec 1, 2022 · 1 comment

Comments

@MeirsPortal
Copy link

Adding Description attribute to a Test:
[Test, Description("Description_Info")]

it allows me to read it at the event:
ReportPortalListener_AfterTestFinished(object sender, ReportPortal.NUnitExtension.EventArguments.TestItemFinishedEventArgs e)
The value of 'e.FinishTestItemRequest.Description' is "Description_Info".

But when running a TestCaseSource
[TestCaseSource(typeof(DataSource), "DataSource"), Description("Description_Info")
The value of 'e.FinishTestItemRequest.Description' is null.

How can I read the Description attribute value of a TestCaseSource type test?

@MeirsPortal MeirsPortal changed the title e.FinishTestItemRequest.Description is null when Description attribute is on TestCaseSource rather then Test e.FinishTestItemRequest.Description is null when Description attribute is from TestCaseSource rather then Test Dec 1, 2022
@nvborisenko
Copy link
Member

No way at this moment, related to #36

Regarding your issue, Description is applied to suite, not for individual test. And, moreover, description value is available for us only when nunit finishes test (by design? probably yes)

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