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
{{ message }}
Repository navigation
[JsonRpc Protocol] Separate location.method to location.method-name and location.method-parameters #5476
One challenge in F# is its identifier name rules, where ( for example is allowed. That means that clients cannot separate method name from parameter types.
I strongly believe that for MTP we should separate location.method to 2 different properties, matching the model of TestMethodIdentifierProperty. This means we don't need the escaping rules of ManagedMethod, and we are not forcing framework authors to implement the escaping logic and plug it in TestMethodIdentifierProperty for no good reason.
It's probably even better to separate it to 3 properties, location.method-name, location.method-arity, and location.method.parameters. This will require a public API change to TestMethodIdentifierProperty.
As part of this, I would like us to well standardize and document TestMethodIdentifierProperty.
Clearly document that this is the semantic type rather than the syntactic type (e.g, in case of method in base class being executed in the context of the derived class, the type should refer to the derived class)
The Namespace+TypeName parts are constructed by accessing Type.FullName (e.g, uses backticks for arity and + for nested type). And just split the Type.FullName on the last dot to separate namespace + type name, which shouldn't cause any ambiguity in any case.
The method name part is just the method name, no backticks or anything for generics is involved.
Method arity is clear enough I think.
Then we come to the parameters which is the most challenging and is not standardized today, at least for the case of generics.
In addition, we could introduce VSTestBridge-specific properties that allow MSTest and NUnit to provide this information without needing the managed type/name stuff. We will also need to work with Test Explorer for the standardization of TestMethodIdentifierProperty so that the info is interpreted correctly on their side.
Activity
Youssef1313 commentedon Dec 4, 2025
As part of this, I would like us to well standardize and document
TestMethodIdentifierProperty.Type.FullName(e.g, uses backticks for arity and + for nested type). And just split theType.FullNameon the last dot to separate namespace + type name, which shouldn't cause any ambiguity in any case.In addition, we could introduce VSTestBridge-specific properties that allow MSTest and NUnit to provide this information without needing the managed type/name stuff. We will also need to work with Test Explorer for the standardization of TestMethodIdentifierProperty so that the info is interpreted correctly on their side.