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
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?
The text was updated successfully, but these errors were encountered:
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
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)
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?
The text was updated successfully, but these errors were encountered: