From 3c7787e3249915f43ad0720f0ddb923539e8d83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Tue, 28 Jan 2025 11:37:12 +0100 Subject: [PATCH] Open experimentally Configuration and Logging (#4795) --- .editorconfig | 2 + .../Microsoft.Testing.Platform/.editorconfig | 5 -- .../Builder/ITestApplicationBuilder.cs | 8 +++ .../Builder/TestApplicationBuilder.cs | 6 +- .../CommandLineOptionsValidator.cs | 16 ++--- .../CommandLine/OptionRecord.cs | 5 +- .../CommandLine/ParseResult.cs | 26 ++++---- .../CommandLine/Parser.cs | 2 +- .../Configurations/IConfigurationManager.cs | 3 +- .../Configurations/IConfigurationProvider.cs | 3 +- .../Configurations/IConfigurationSource.cs | 3 +- .../Hosts/ToolsTestHost.cs | 18 +++--- .../Logging/ILoggerProvider.cs | 3 +- .../Logging/ILoggingManager.cs | 3 +- .../PublicAPI/PublicAPI.Unshipped.txt | 33 ++++++++++ .../CommandLine/CommandLineHandlerTests.cs | 4 +- .../CommandLine/CommandLineTests.cs | 62 +++++++++---------- .../ConfigurationManagerTests.cs | 12 ++-- 18 files changed, 131 insertions(+), 83 deletions(-) delete mode 100644 src/Platform/Microsoft.Testing.Platform/.editorconfig diff --git a/.editorconfig b/.editorconfig index 742a013007..aec278d367 100644 --- a/.editorconfig +++ b/.editorconfig @@ -262,6 +262,8 @@ dotnet_diagnostic.VSTHRD002.severity = none # VSTHRD002 Avoid proble dotnet_diagnostic.VSTHRD003.severity = none # VSTHRD003: Avoid awaiting foreign Tasks dotnet_diagnostic.VSTHRD105.severity = none # VSTHRD105: Avoid method overloads that assume TaskScheduler.Current +dotnet_diagnostic.TPEXP.severity = none # TPEXP: Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. + #### Naming styles #### ## Naming rules (define naming rule using dotnet_naming_rule..