Summary
Microsoft.Testing.Extensions.VSTestBridge still throws NotImplementedException from IRunSettings.GetSettings. Any bridged adapter that relies on that VSTest API will work under VSTest but fail under the MTP bridge.
Evidence
src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/RunSettingsAdapter.cs:40-47
- the adapter builds a patched runsettings document and stores it in
SettingsXml.
src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/RunSettingsAdapter.cs:54-55
// TODO: Needs to be implemented if used by adapters. It is not used by MSTest.
public ISettingsProvider? GetSettings(string? settingsName) => throw new NotImplementedException();
src/Platform/Microsoft.Testing.Extensions.VSTestBridge/PACKAGE.md:17-22
- the package advertises
Runsettings and filter support for framework authors.
Why this is a real issue
The bridge is explicitly meant for test framework / adapter authors, not just MSTest. Those adapters can legitimately call IRunSettings.GetSettings(...) to read custom runsettings sections. Today the bridge advertises runsettings compatibility, constructs SettingsXml, and then still throws for the rest of the contract, which turns a supported VSTest adapter API into a runtime failure under MTP.
Suggested resolution
Implement GetSettings over the patched runsettings XML (or document and expose a supported alternative if the VSTest contract cannot be mirrored exactly). Add a unit test covering a bridged adapter that requests a named settings provider.
Related issues
Summary
Microsoft.Testing.Extensions.VSTestBridgestill throwsNotImplementedExceptionfromIRunSettings.GetSettings. Any bridged adapter that relies on that VSTest API will work under VSTest but fail under the MTP bridge.Evidence
src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/RunSettingsAdapter.cs:40-47SettingsXml.src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/RunSettingsAdapter.cs:54-55// TODO: Needs to be implemented if used by adapters. It is not used by MSTest.public ISettingsProvider? GetSettings(string? settingsName) => throw new NotImplementedException();src/Platform/Microsoft.Testing.Extensions.VSTestBridge/PACKAGE.md:17-22Runsettings and filter supportfor framework authors.Why this is a real issue
The bridge is explicitly meant for test framework / adapter authors, not just MSTest. Those adapters can legitimately call
IRunSettings.GetSettings(...)to read custom runsettings sections. Today the bridge advertises runsettings compatibility, constructsSettingsXml, and then still throws for the rest of the contract, which turns a supported VSTest adapter API into a runtime failure under MTP.Suggested resolution
Implement
GetSettingsover the patched runsettings XML (or document and expose a supported alternative if the VSTest contract cannot be mirrored exactly). Add a unit test covering a bridged adapter that requests a named settings provider.Related issues