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
MSTest on MTP silently ignores custom .runsettings sections without a warning #11776
MSTest on Microsoft.Testing.Platform warns for some unsupported .runsettings entries, but silently ignores custom top-level sections that would be loaded by VSTest ISettingsProvider extensions. In particular, <Playwright> is ignored, which makes browser, launch, and assertion configuration appear to work while defaults are actually used.
dotnet run --project WarningRepro.csproj -- --settings ignored.runsettings --output Detailed
Actual behavior
Verified with the published packages on Windows, targeting net8.0. The process exits 0 and runs one passing test. Output contains the control warning:
Runsettings attribute 'MaxCpuCount' is not supported by Microsoft.Testing.Platform and will be ignored
There is no warning for the ignored <Playwright> section. MSTestRunSettings.WarnOnUnsupportedEntries warns for loggers, data collectors, and a fixed list of RunConfiguration entries, but not unsupported custom top-level sections.
Expected behavior
Warn when a custom runsettings section will not be consumed on MTP, naming the ignored section and explaining that VSTest ISettingsProvider extensions are not invoked. Do not warn for sections MSTest actually consumes. Ideally the platform/framework can distinguish sections consumed by registered native extensions, so applications are not forced to guess or parse internal runsettings transport details.
Activity