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
(You can safely ignore the AppDomain gymnastics, as the bug report is using .NET 8.)
We get no source information when a test method comes from a base class in another assembly. MSTest does not have this problem, and I glanced at the source to ensure that they too are relying on DiaSession, so this probably comes down to me not understanding how I'm supposed to be using it in this scenario.
Also worth noting that everything works fine when we are in Microsoft Testing Platform mode (rather than VSTest mode), because in that scenario we don't ever see or invoke DiaSession; I assume MTP is doing all the source mapping under the hood for us, so it's also doing the right thing.
Any hints what I'm doing wrong in this scenario? Should I be trying to recurse up through the base classes when I get back "no answer" for a type?
For reference, the user issue with a repro project: xunit/xunit#3023
The text was updated successfully, but these errors were encountered:
Quick summary of the problem:
We use
DiaSession
to map types to source inxunit.runner.visualstudio
:https://github.com/xunit/visualstudio.xunit/blob/main/src/xunit.runner.visualstudio/Utility/DiaSessionWrapper.cs
https://github.com/xunit/visualstudio.xunit/blob/main/src/xunit.runner.visualstudio/Utility/DiaSessionWrapperHelper.cs
(You can safely ignore the AppDomain gymnastics, as the bug report is using .NET 8.)
We get no source information when a test method comes from a base class in another assembly. MSTest does not have this problem, and I glanced at the source to ensure that they too are relying on
DiaSession
, so this probably comes down to me not understanding how I'm supposed to be using it in this scenario.Also worth noting that everything works fine when we are in Microsoft Testing Platform mode (rather than VSTest mode), because in that scenario we don't ever see or invoke
DiaSession
; I assume MTP is doing all the source mapping under the hood for us, so it's also doing the right thing.Any hints what I'm doing wrong in this scenario? Should I be trying to recurse up through the base classes when I get back "no answer" for a type?
For reference, the user issue with a repro project: xunit/xunit#3023
The text was updated successfully, but these errors were encountered: