From d525cc739eccb91daa15e3248adbd607669599e7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 Aug 2025 08:44:14 +0000 Subject: [PATCH 1/7] Initial plan From 07c39303819884895de6f540dfb3efa4c54e53df Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 Aug 2025 09:06:09 +0000 Subject: [PATCH 2/7] Implement global command-line options for dotnet test MTP: --config-file, --diagnostic-output-directory, --timeout, --minimum-expected-tests, --maximum-failed-tests Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com> --- .../dotnet/Commands/CliCommandStrings.resx | 31 +++++++++++ .../dotnet/Commands/Test/MSBuildUtility.cs | 21 +++++++- src/Cli/dotnet/Commands/Test/Options.cs | 10 ++-- .../dotnet/Commands/Test/TestApplication.cs | 25 +++++++++ .../dotnet/Commands/Test/TestCommandParser.cs | 5 ++ .../Commands/Test/TestingPlatformOptions.cs | 35 +++++++++++++ .../Commands/xlf/CliCommandStrings.cs.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.de.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.es.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.fr.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.it.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.ja.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.ko.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.pl.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.pt-BR.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.ru.xlf | 52 +++++++++++++++++++ .../Commands/xlf/CliCommandStrings.tr.xlf | 52 +++++++++++++++++++ .../xlf/CliCommandStrings.zh-Hans.xlf | 52 +++++++++++++++++++ .../xlf/CliCommandStrings.zh-Hant.xlf | 52 +++++++++++++++++++ 19 files changed, 798 insertions(+), 5 deletions(-) diff --git a/src/Cli/dotnet/Commands/CliCommandStrings.resx b/src/Cli/dotnet/Commands/CliCommandStrings.resx index 2a62ba8ec28d..e15ea6b2b6dd 100644 --- a/src/Cli/dotnet/Commands/CliCommandStrings.resx +++ b/src/Cli/dotnet/Commands/CliCommandStrings.resx @@ -565,6 +565,37 @@ This is equivalent to deleting project.assets.json. The directory where the test results will be placed. The specified directory will be created if it does not exist. + + The NuGet configuration file to use for the test execution. + + + CONFIG_FILE + + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + DIAGNOSTIC_DIR + + + The timeout for the test execution in milliseconds. + + + TIMEOUT + + + The minimum number of tests expected to be discovered. + + + COUNT + + + The maximum number of tests allowed to fail before the test run is terminated. + + + COUNT + ROOT_PATH diff --git a/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs b/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs index 8da1130f6ac8..5e675d84b0b8 100644 --- a/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs +++ b/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs @@ -72,11 +72,25 @@ public static BuildOptions GetBuildOptions(ParseResult parseResult, int degreeOf resultsDirectory = Path.Combine(Directory.GetCurrentDirectory(), resultsDirectory); } + string? configFile = parseResult.GetValue(TestingPlatformOptions.ConfigFileOption); + if (configFile is not null) + { + configFile = Path.Combine(Directory.GetCurrentDirectory(), configFile); + } + + string? diagnosticOutputDirectory = parseResult.GetValue(TestingPlatformOptions.DiagnosticOutputDirectoryOption); + if (diagnosticOutputDirectory is not null) + { + diagnosticOutputDirectory = Path.Combine(Directory.GetCurrentDirectory(), diagnosticOutputDirectory); + } + PathOptions pathOptions = new( parseResult.GetValue(TestingPlatformOptions.ProjectOption), parseResult.GetValue(TestingPlatformOptions.SolutionOption), parseResult.GetValue(TestingPlatformOptions.DirectoryOption), - resultsDirectory); + resultsDirectory, + configFile, + diagnosticOutputDirectory); return new BuildOptions( pathOptions, @@ -87,7 +101,10 @@ public static BuildOptions GetBuildOptions(ParseResult parseResult, int degreeOf parseResult.GetValue(TestingPlatformOptions.NoLaunchProfileArgumentsOption), degreeOfParallelism, otherArgs, - msbuildArgs); + msbuildArgs, + parseResult.GetValue(TestingPlatformOptions.TimeoutOption), + parseResult.GetValue(TestingPlatformOptions.MinimumExpectedTestsOption), + parseResult.GetValue(TestingPlatformOptions.MaximumFailedTestsOption)); } private static bool BuildOrRestoreProjectOrSolution(string filePath, BuildOptions buildOptions) diff --git a/src/Cli/dotnet/Commands/Test/Options.cs b/src/Cli/dotnet/Commands/Test/Options.cs index 4a48629c1cda..d1b62db659c8 100644 --- a/src/Cli/dotnet/Commands/Test/Options.cs +++ b/src/Cli/dotnet/Commands/Test/Options.cs @@ -5,7 +5,7 @@ namespace Microsoft.DotNet.Cli.Commands.Test; internal record TestOptions(bool HasFilterMode, bool IsHelp); -internal record PathOptions(string? ProjectPath, string? SolutionPath, string? DirectoryPath, string? ResultsDirectoryPath); +internal record PathOptions(string? ProjectPath, string? SolutionPath, string? DirectoryPath, string? ResultsDirectoryPath, string? ConfigFilePath, string? DiagnosticOutputDirectoryPath); internal record BuildOptions( PathOptions PathOptions, @@ -14,5 +14,9 @@ internal record BuildOptions( Utils.VerbosityOptions? Verbosity, bool NoLaunchProfile, bool NoLaunchProfileArguments, - int DegreeOfParallelism, List UnmatchedTokens, - IEnumerable MSBuildArgs); + int DegreeOfParallelism, + List UnmatchedTokens, + IEnumerable MSBuildArgs, + string? Timeout, + string? MinimumExpectedTests, + string? MaximumFailedTests); diff --git a/src/Cli/dotnet/Commands/Test/TestApplication.cs b/src/Cli/dotnet/Commands/Test/TestApplication.cs index ef58b4e8300f..3d7f494913fc 100644 --- a/src/Cli/dotnet/Commands/Test/TestApplication.cs +++ b/src/Cli/dotnet/Commands/Test/TestApplication.cs @@ -115,6 +115,31 @@ private string GetArguments(TestOptions testOptions) builder.Append($" {TestingPlatformOptions.ResultsDirectoryOption.Name} {ArgumentEscaper.EscapeSingleArg(resultsDirectoryPath)}"); } + if (_buildOptions.PathOptions.ConfigFilePath is { } configFilePath) + { + builder.Append($" {TestingPlatformOptions.ConfigFileOption.Name} {ArgumentEscaper.EscapeSingleArg(configFilePath)}"); + } + + if (_buildOptions.PathOptions.DiagnosticOutputDirectoryPath is { } diagnosticOutputDirectoryPath) + { + builder.Append($" {TestingPlatformOptions.DiagnosticOutputDirectoryOption.Name} {ArgumentEscaper.EscapeSingleArg(diagnosticOutputDirectoryPath)}"); + } + + if (_buildOptions.Timeout is { } timeout) + { + builder.Append($" {TestingPlatformOptions.TimeoutOption.Name} {ArgumentEscaper.EscapeSingleArg(timeout)}"); + } + + if (_buildOptions.MinimumExpectedTests is { } minimumExpectedTests) + { + builder.Append($" {TestingPlatformOptions.MinimumExpectedTestsOption.Name} {ArgumentEscaper.EscapeSingleArg(minimumExpectedTests)}"); + } + + if (_buildOptions.MaximumFailedTests is { } maximumFailedTests) + { + builder.Append($" {TestingPlatformOptions.MaximumFailedTestsOption.Name} {ArgumentEscaper.EscapeSingleArg(maximumFailedTests)}"); + } + foreach (var arg in _buildOptions.UnmatchedTokens) { builder.Append($" {ArgumentEscaper.EscapeSingleArg(arg)}"); diff --git a/src/Cli/dotnet/Commands/Test/TestCommandParser.cs b/src/Cli/dotnet/Commands/Test/TestCommandParser.cs index 47f01864ef73..d3eb9316337b 100644 --- a/src/Cli/dotnet/Commands/Test/TestCommandParser.cs +++ b/src/Cli/dotnet/Commands/Test/TestCommandParser.cs @@ -236,6 +236,11 @@ private static Command GetTestingPlatformCliCommand() command.Options.Add(TestingPlatformOptions.TestModulesFilterOption); command.Options.Add(TestingPlatformOptions.TestModulesRootDirectoryOption); command.Options.Add(TestingPlatformOptions.ResultsDirectoryOption); + command.Options.Add(TestingPlatformOptions.ConfigFileOption); + command.Options.Add(TestingPlatformOptions.DiagnosticOutputDirectoryOption); + command.Options.Add(TestingPlatformOptions.TimeoutOption); + command.Options.Add(TestingPlatformOptions.MinimumExpectedTestsOption); + command.Options.Add(TestingPlatformOptions.MaximumFailedTestsOption); command.Options.Add(TestingPlatformOptions.MaxParallelTestModulesOption); command.Options.Add(CommonOptions.ArchitectureOption); command.Options.Add(CommonOptions.PropertiesOption); diff --git a/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs b/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs index cf2bb02965ec..10d904302d63 100644 --- a/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs +++ b/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs @@ -50,6 +50,41 @@ internal static class TestingPlatformOptions Arity = ArgumentArity.ExactlyOne }; + public static readonly Option ConfigFileOption = new("--config-file") + { + Description = CliCommandStrings.CmdConfigFileDescription, + HelpName = CliCommandStrings.CmdConfigFilePath, + Arity = ArgumentArity.ExactlyOne + }; + + public static readonly Option DiagnosticOutputDirectoryOption = new("--diagnostic-output-directory") + { + Description = CliCommandStrings.CmdDiagnosticOutputDirectoryDescription, + HelpName = CliCommandStrings.CmdDiagnosticOutputDirectoryPath, + Arity = ArgumentArity.ExactlyOne + }; + + public static readonly Option TimeoutOption = new("--timeout") + { + Description = CliCommandStrings.CmdTimeoutDescription, + HelpName = CliCommandStrings.CmdTimeoutValue, + Arity = ArgumentArity.ExactlyOne + }; + + public static readonly Option MinimumExpectedTestsOption = new("--minimum-expected-tests") + { + Description = CliCommandStrings.CmdMinimumExpectedTestsDescription, + HelpName = CliCommandStrings.CmdMinimumExpectedTestsValue, + Arity = ArgumentArity.ExactlyOne + }; + + public static readonly Option MaximumFailedTestsOption = new("--maximum-failed-tests") + { + Description = CliCommandStrings.CmdMaximumFailedTestsDescription, + HelpName = CliCommandStrings.CmdMaximumFailedTestsValue, + Arity = ArgumentArity.ExactlyOne + }; + public static readonly Option MaxParallelTestModulesOption = new("--max-parallel-test-modules") { Description = CliCommandStrings.CmdMaxParallelTestModulesDescription, diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf index 64a073d7c81c..7bcb7905501b 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf @@ -406,6 +406,11 @@ Pro MSTest před 2.2.4 se časový limit použije pro všechny testovací příp Cesta ke konfiguračnímu souboru NuGet, který se má použít. Vyžaduje přepínač --outdated, --deprecated nebo --vulnerable. + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ Pro MSTest před 2.2.4 se časový limit použije pro všechny testovací příp Konfigurační soubor NuGet, který se použije. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. Jako cílový modul runtime použijte aktuální modul. @@ -436,6 +446,18 @@ Pro MSTest před 2.2.4 se časový limit použije pro všechny testovací příp Vypíše balíčky, které jsou zastaralé. Nedá se kombinovat s možností --vulnerable ani --outdated. + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. Definuje cestu k adresáři pro spuštění. Pokud se nezadá, použije se výchozí nastavení aktuálního adresáře. @@ -561,6 +583,26 @@ Jedná se o ekvivalent odstranění project.assets.json. Maximální počet testovacích modulů, které je možné spustit paralelně. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. Zadejte parametr projektu, řešení, adresáře nebo testovacích modulů. @@ -835,6 +877,16 @@ Pokud zadaný adresář neexistuje, bude vytvořen. Podrobnosti výstupu testu + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. Vypíše seznam přenosných balíčků a balíčků nejvyšší úrovně. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf index 109c182e2e04..414d043cbe92 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf @@ -406,6 +406,11 @@ für MSTest vor 2.2.4 wird das Timeout für alle Testfälle verwendet. Der Pfad zurNuGet-Konfigurationsdatei, die verwendet werden soll. Erfordert die Option "--outdated", "--deprecated" oder "--vulnerable". + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ für MSTest vor 2.2.4 wird das Timeout für alle Testfälle verwendet. Die zu verwendende NuGet-Konfigurationsdatei. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. Verwenden Sie die aktuelle Runtime als Zielruntime. @@ -436,6 +446,18 @@ für MSTest vor 2.2.4 wird das Timeout für alle Testfälle verwendet. Listet Pakete auf, die veraltet sind. Kann nicht mit den Optionen "--vulnerable" oder "--outdated" kombiniert werden. + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. Definiert den Pfad des auszuführenden Verzeichnisses. Wenn keine Angabe erfolgt, wird standardmäßig das aktuelle Verzeichnis verwendet. @@ -561,6 +583,26 @@ Dies entspricht dem Löschen von "project.assets.json". Die maximale Anzahl von Testmodulen, die parallel ausgeführt werden können. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. Geben Sie entweder die Option "Projekt", "Projektmappe", "Verzeichnis" oder "Testmodule" an. @@ -835,6 +877,16 @@ Das angegebene Verzeichnis wird erstellt, wenn es nicht vorhanden ist. Ausführlichkeit der Testausgabe. + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. Listet transitive Pakete und Pakete der obersten Ebene auf. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf index 4b52ce438a03..fa3f037ec0e9 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf @@ -406,6 +406,11 @@ Para MSTest antes de 2.2.4, el tiempo de espera se usa para todos los casos de p La ruta de acceso al archivo de configuración de NuGet que se va a usar. Requiere la opción "--outdated", "--deprecated" o "--vulnerable". + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ Para MSTest antes de 2.2.4, el tiempo de espera se usa para todos los casos de p Archivo de configuración de NuGet que debe usarse. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. Use el runtime actual como runtime de destino. @@ -436,6 +446,18 @@ Para MSTest antes de 2.2.4, el tiempo de espera se usa para todos los casos de p Muestra los paquetes que han quedado en desuso. No se puede combinar con las opciones "--outdated" o "--vulnerable". + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. Define la ruta de acceso del directorio que se va a ejecutar. Si no se especifica, el valor predeterminado es el directorio actual. @@ -561,6 +583,26 @@ Esta acción es equivalente a eliminar project.assets.json. Número máximo de módulos de prueba que se pueden ejecutar en paralelo. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. Especifique la opción de módulos de proyecto, solución, directorio o prueba. @@ -835,6 +877,16 @@ Si no existe, se creará el directorio especificado. Nivel de detalle de la salida de la prueba. + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. Contiene paquetes de transitivos y de nivel superior. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf index b82c108765ca..a56b74b1dc60 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf @@ -406,6 +406,11 @@ Pour MSTest avant la version 2.2.4, le délai d’expiration est utilisé pour Chemin du fichier config NuGet à utiliser. Nécessite l'option '--outdated', '--deprecated' ou '--vulnerable'. + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ Pour MSTest avant la version 2.2.4, le délai d’expiration est utilisé pour Fichier de configuration NuGet à utiliser. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. Utilisez le runtime actuel en tant que runtime cible. @@ -436,6 +446,18 @@ Pour MSTest avant la version 2.2.4, le délai d’expiration est utilisé pour Liste les packages qui ont été dépréciés. Impossible à combiner avec les options '--vulnerable' ou '--outdated'. + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. Définit le chemin d’accès du répertoire à exécuter. Si rien n’est spécifié, la valeur par défaut est le répertoire actif. @@ -561,6 +583,26 @@ Cela équivaut à supprimer project.assets.json. Nombre maximal de modules de test qui peuvent s’exécuter en parallèle. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. Spécifiez l'option des modules de projet, de solution, de répertoire ou de test. @@ -835,6 +877,16 @@ Le répertoire spécifié est créé, s'il n'existe pas déjà. Verbosité de la sortie de test. + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. Liste les packages transitifs et de niveau supérieur. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf index 36ce6c7bf784..c7ff3f1a688e 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf @@ -406,6 +406,11 @@ Per MSTest anteriore a 2.2.4, il timeout viene usato per tutti i test case.Percorso del file config NuGet da usare. Richiede l'opzione '--outdated', '--deprecated' o '--vulnerable'. + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ Per MSTest anteriore a 2.2.4, il timeout viene usato per tutti i test case.File di configurazione NuGet da usare. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. Usa il runtime corrente come runtime di destinazione. @@ -436,6 +446,18 @@ Per MSTest anteriore a 2.2.4, il timeout viene usato per tutti i test case.Elenca i pacchetti che sono stati deprecati. Non può essere combinato con l'opzione '--vulnerable' o '--outdated'. + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. Definisce il percorso della directory da eseguire. Se non specificato, per impostazione predefinita viene usata la directory corrente. @@ -561,6 +583,26 @@ Equivale a eliminare project.assets.json. Numero massimo di moduli di test che possono essere eseguiti in parallelo. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. Specifica l'opzione progetto, soluzione, directory o moduli di test. @@ -835,6 +877,16 @@ Se non esiste, la directory specificata verrà creata. Dettaglio dell'output di test. + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. Elenca i pacchetti transitivi e di primo livello. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf index ec5845275adf..4ba64f249b17 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf @@ -406,6 +406,11 @@ For MSTest before 2.2.4, the timeout is used for all testcases. 使用する NuGet config ファイルのパス。'--outdated'、'--deprecated'、または '--vulnerable' のオプションが必要です。 + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ For MSTest before 2.2.4, the timeout is used for all testcases. 使用する NuGet 構成ファイル。 + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. 現在のランタイムをターゲット ランタイムとして使用します。 @@ -436,6 +446,18 @@ For MSTest before 2.2.4, the timeout is used for all testcases. 非推奨化されたパッケージを一覧表示します。'--vulnerable' または '--outdated' オプションと組み合わせることはできません。 + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. 実行するディレクトリのパスを定義します。指定しない場合は、既定で現在のディレクトリに設定されます。 @@ -561,6 +583,26 @@ This is equivalent to deleting project.assets.json. 並列で実行できるテスト モジュールの最大数。 + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. プロジェクト、ソリューション、ディレクトリ、またはテスト モジュールのオプションを指定してください。 @@ -835,6 +877,16 @@ The specified directory will be created if it does not exist. テスト出力の詳細。 + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. 推移的なパッケージと最上位レベルのパッケージを一覧表示します。 diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf index 24a33bd40fbe..7574b85ee5b1 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf @@ -406,6 +406,11 @@ MSTest 2.2.4 이전의 경우 시간 제한은 모든 테스트케이스에 사 사용할 NuGet 구성 파일의 경로입니다. '--outdated', '--deprecated' 또는 '--vulnerable' 옵션이 필요합니다. + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ MSTest 2.2.4 이전의 경우 시간 제한은 모든 테스트케이스에 사 사용할 NuGet 구성 파일입니다. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. 현재 런타임을 대상 런타임으로 사용합니다. @@ -436,6 +446,18 @@ MSTest 2.2.4 이전의 경우 시간 제한은 모든 테스트케이스에 사 사용되지 않는 패키지를 나열합니다. '--vulnerable' 또는 '--outdated' 옵션과 함께 사용할 수 없습니다. + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. 실행할 디렉터리의 경로를 정의합니다. 지정하지 않으면 기본적으로 현재 디렉터리가 사용됩니다. @@ -561,6 +583,26 @@ project.assets.json을 삭제하는 것과 동일합니다. 병렬로 실행할 수 있는 최대 테스트 모듈 수입니다. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. 프로젝트, 솔루션, 디렉터리 또는 테스트 모듈 옵션을 지정하세요. @@ -835,6 +877,16 @@ The specified directory will be created if it does not exist. 테스트 출력의 세부 정보 표시입니다. + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. 전이적 패키지 및 최상위 패키지를 나열합니다. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf index 3ab929146205..f3a37e8751b1 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf @@ -406,6 +406,11 @@ W przypadku platformy MSTest przed wersją 2.2.4 limit czasu jest używany dla w Ścieżka do pliku konfiguracji NuGet do użycia. Wymaga opcji „--outdated”, „--deprecated” lub „--vulnerable”. + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ W przypadku platformy MSTest przed wersją 2.2.4 limit czasu jest używany dla w Plik konfiguracji programu NuGet do użycia. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. Użyj bieżącego środowiska uruchomieniowego jako docelowego środowiska uruchomieniowego. @@ -436,6 +446,18 @@ W przypadku platformy MSTest przed wersją 2.2.4 limit czasu jest używany dla w Wyświetla pakiety, które są przestarzałe. Nie można łączyć z opcją „--vulnerable” ani „--outdated”. + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. Definiuje ścieżkę katalogu do uruchomienia. Jeśli nie zostanie określony, domyślnie będzie to bieżący katalog. @@ -561,6 +583,26 @@ Jest to równoważne usunięciu pliku project.assets.json. Maksymalna liczba modułów testowych, które mogą być uruchamiane równolegle. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. Określ opcję projektu, rozwiązania, katalogu lub modułów testowych. @@ -835,6 +877,16 @@ Jeśli określony katalog nie istnieje, zostanie utworzony. Szczegółowość danych wyjściowych testu. + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. Zwraca listę pakietów przejściowych i pakietów najwyższego poziomu. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf index c2d3b8d5b224..a6e565518fa7 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf @@ -406,6 +406,11 @@ Para MSTest antes de 2.2.4, o tempo limite é usado para todos os casos de teste O caminho para o arquivo de configuração do NuGet a ser usado. Exige a opção '--outdated', '--deprecated' ou '--vulnerable'. + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ Para MSTest antes de 2.2.4, o tempo limite é usado para todos os casos de teste O arquivo de configuração do NuGet a ser usado. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. Usar o runtime atual como o runtime de destino. @@ -436,6 +446,18 @@ Para MSTest antes de 2.2.4, o tempo limite é usado para todos os casos de teste Lista os pacotes que foram preteridos. Não pode ser combinado com a opção '--vulnerable' nem com a opção '--outdated'. + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. Define o caminho do diretório a ser executado. Se não for especificado, o padrão será o diretório atual. @@ -561,6 +583,26 @@ Isso equivale a excluir o project.assets.json. O número máximo de módulos de teste que podem ser executados em paralelo. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. Especifique a opção de módulos de projeto, solução, diretório ou teste. @@ -835,6 +877,16 @@ O diretório especificado será criado se ele ainda não existir. Detalhamento da saída do teste. + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. Lista os pacotes de nível superior e transitivos. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf index 1b9fb6f85c3c..3b3472e605b4 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf @@ -406,6 +406,11 @@ For MSTest before 2.2.4, the timeout is used for all testcases. Путь к используемому файлу конфигурации NuGet. Требуется указать параметр "--outdated", "--deprecated" или "--vulnerable". + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ For MSTest before 2.2.4, the timeout is used for all testcases. Используемый файл конфигурации NuGet. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. Использовать текущую среду выполнения в качестве целевой среды выполнения. @@ -436,6 +446,18 @@ For MSTest before 2.2.4, the timeout is used for all testcases. Возвращает список устаревших пакетов. Не может использоваться с параметрами "--vulnerable" или "--outdated". + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. Определяет путь к каталогу для выполнения. Если не указано, по умолчанию используется текущий каталог. @@ -561,6 +583,26 @@ This is equivalent to deleting project.assets.json. Максимальное число тестовых модулей, которые могут выполняться параллельно. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. Укажите проект, решение, каталог или опцию тестового модуля. @@ -835,6 +877,16 @@ The specified directory will be created if it does not exist. Уровень детализации вывода тестов. + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. Список транзитивных пакетов и пакетов верхнего уровня. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf index 9009d605ee54..24718700e7bd 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf @@ -406,6 +406,11 @@ MSTest için 2.2.4'ten önce, zaman aşımı tüm test durumları için kullanı Kullanılacak NuGet yapılandırma dosyasının yolu. '--outdated', '--deprecated' veya '--vulnerable' seçeneğini gerektirir. + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ MSTest için 2.2.4'ten önce, zaman aşımı tüm test durumları için kullanı Kullanılacak NuGet yapılandırma dosyası. + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. Hedef çalışma zamanı olarak geçerli çalışma zamanını kullanın. @@ -436,6 +446,18 @@ MSTest için 2.2.4'ten önce, zaman aşımı tüm test durumları için kullanı Kullanım dışı bırakılan paketleri listeler. '--vulnerable' veya '--outdated' seçenekleriyle birleştirilemez. + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. Çalıştırılacak dizinin yolunu belirtir. Belirtilmezse, varsayılan olarak geçerli dizine ayarlar. @@ -561,6 +583,26 @@ project.assets.json öğesini silmeyle eşdeğerdir. Paralel olarak çalıştırılabilecek test modüllerinin maksimum sayısı. + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. Proje, çözüm, dizin veya test modülleri seçeneklerinden birini seçin. @@ -835,6 +877,16 @@ Belirtilen dizin yoksa oluşturulur. Test çıkışının ayrıntı düzeyi. + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. Geçişli ve üst düzey paketleri listeler. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf index f0de7d31f629..74578b4fbd12 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf @@ -406,6 +406,11 @@ For MSTest before 2.2.4, the timeout is used for all testcases. 要使用的 NuGet 配置文件的路径。需要 "--outdated"、"--deprecated" 或 "--vulnerable" 选项。 + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ For MSTest before 2.2.4, the timeout is used for all testcases. 要使用的 NuGet 配置文件。 + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. 将当前运行时用作目标运行时。 @@ -436,6 +446,18 @@ For MSTest before 2.2.4, the timeout is used for all testcases. 列出已被弃用的包。不能与 "--vulnerable" 或 "--outdated" 选项结合使用。 + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. 定义要运行的目录的路径。如果未指定,则默认为当前目录。 @@ -561,6 +583,26 @@ This is equivalent to deleting project.assets.json. 可并行运行的测试模块的最大数目。 + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. 指定项目、解决方案、目录或测试模块选项。 @@ -835,6 +877,16 @@ The specified directory will be created if it does not exist. 测试输出的详细程度。 + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. 列出可传递的包和顶级包。 diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf index 6b6ec748e046..5a07a7bec22b 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf @@ -406,6 +406,11 @@ For MSTest before 2.2.4, the timeout is used for all testcases. 要使用的 NuGet 組態檔路徑。需要 '--outdated'、'--deprecated' 或 '--vulnerable' 選項。 + + The NuGet configuration file to use for the test execution. + The NuGet configuration file to use for the test execution. + + FILE FILE @@ -416,6 +421,11 @@ For MSTest before 2.2.4, the timeout is used for all testcases. 要使用的 NuGet 組態檔。 + + CONFIG_FILE + CONFIG_FILE + + Use current runtime as the target runtime. 使用目前的執行階段作為目標執行階段。 @@ -436,6 +446,18 @@ For MSTest before 2.2.4, the timeout is used for all testcases. 列出已淘汰的套件。無法與 '--vulnerable' 或 '--outdated' 選項一併使用。 + + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + The directory where diagnostic output will be placed. +The specified directory will be created if it does not exist. + + + + DIAGNOSTIC_DIR + DIAGNOSTIC_DIR + + Defines the path of directory to run. If not specified, it defaults to the current directory. 定義要執行的目錄路徑。如果未指定,則預設為目前目錄。 @@ -561,6 +583,26 @@ This is equivalent to deleting project.assets.json. 可平行執行的測試模組數目上限。 + + The maximum number of tests allowed to fail before the test run is terminated. + The maximum number of tests allowed to fail before the test run is terminated. + + + + COUNT + COUNT + + + + The minimum number of tests expected to be discovered. + The minimum number of tests expected to be discovered. + + + + COUNT + COUNT + + Specify either the project, solution, directory, or test modules option. 指定專案、解決方案、目錄或測試模組選項。 @@ -835,6 +877,16 @@ The specified directory will be created if it does not exist. 測試輸出的詳細程度。 + + The timeout for the test execution in milliseconds. + The timeout for the test execution in milliseconds. + + + + TIMEOUT + TIMEOUT + + Lists transitive and top-level packages. 列出可轉移和頂層套件。 From 6f48eec14d8aebba3383e531c0d5ecf5feabde0c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 Aug 2025 09:11:59 +0000 Subject: [PATCH 3/7] Fix path transformation logic to use Path.GetFullPath for better handling of absolute/relative paths Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com> --- src/Cli/dotnet/Commands/Test/MSBuildUtility.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs b/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs index 5e675d84b0b8..374d5cab77c0 100644 --- a/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs +++ b/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs @@ -69,19 +69,19 @@ public static BuildOptions GetBuildOptions(ParseResult parseResult, int degreeOf string? resultsDirectory = parseResult.GetValue(TestingPlatformOptions.ResultsDirectoryOption); if (resultsDirectory is not null) { - resultsDirectory = Path.Combine(Directory.GetCurrentDirectory(), resultsDirectory); + resultsDirectory = Path.GetFullPath(resultsDirectory); } string? configFile = parseResult.GetValue(TestingPlatformOptions.ConfigFileOption); if (configFile is not null) { - configFile = Path.Combine(Directory.GetCurrentDirectory(), configFile); + configFile = Path.GetFullPath(configFile); } string? diagnosticOutputDirectory = parseResult.GetValue(TestingPlatformOptions.DiagnosticOutputDirectoryOption); if (diagnosticOutputDirectory is not null) { - diagnosticOutputDirectory = Path.Combine(Directory.GetCurrentDirectory(), diagnosticOutputDirectory); + diagnosticOutputDirectory = Path.GetFullPath(diagnosticOutputDirectory); } PathOptions pathOptions = new( From 3390ac65d445233b1043a78fc7e1fcd855d3eddb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 Aug 2025 09:33:37 +0000 Subject: [PATCH 4/7] Remove timeout and test count options, keep only config-file and diagnostic-output-directory Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com> --- .../dotnet/Commands/CliCommandStrings.resx | 18 ----------- .../dotnet/Commands/Test/MSBuildUtility.cs | 5 +--- src/Cli/dotnet/Commands/Test/Options.cs | 5 +--- .../dotnet/Commands/Test/TestApplication.cs | 15 ---------- .../dotnet/Commands/Test/TestCommandParser.cs | 3 -- .../Commands/Test/TestingPlatformOptions.cs | 19 ------------ .../Commands/xlf/CliCommandStrings.cs.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.de.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.es.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.fr.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.it.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.ja.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.ko.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.pl.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.pt-BR.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.ru.xlf | 30 ------------------- .../Commands/xlf/CliCommandStrings.tr.xlf | 30 ------------------- .../xlf/CliCommandStrings.zh-Hans.xlf | 30 ------------------- .../xlf/CliCommandStrings.zh-Hant.xlf | 30 ------------------- 19 files changed, 2 insertions(+), 453 deletions(-) diff --git a/src/Cli/dotnet/Commands/CliCommandStrings.resx b/src/Cli/dotnet/Commands/CliCommandStrings.resx index e15ea6b2b6dd..8e37817029e4 100644 --- a/src/Cli/dotnet/Commands/CliCommandStrings.resx +++ b/src/Cli/dotnet/Commands/CliCommandStrings.resx @@ -578,24 +578,6 @@ The specified directory will be created if it does not exist. DIAGNOSTIC_DIR - - The timeout for the test execution in milliseconds. - - - TIMEOUT - - - The minimum number of tests expected to be discovered. - - - COUNT - - - The maximum number of tests allowed to fail before the test run is terminated. - - - COUNT - ROOT_PATH diff --git a/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs b/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs index 374d5cab77c0..f7059dafb155 100644 --- a/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs +++ b/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs @@ -101,10 +101,7 @@ public static BuildOptions GetBuildOptions(ParseResult parseResult, int degreeOf parseResult.GetValue(TestingPlatformOptions.NoLaunchProfileArgumentsOption), degreeOfParallelism, otherArgs, - msbuildArgs, - parseResult.GetValue(TestingPlatformOptions.TimeoutOption), - parseResult.GetValue(TestingPlatformOptions.MinimumExpectedTestsOption), - parseResult.GetValue(TestingPlatformOptions.MaximumFailedTestsOption)); + msbuildArgs); } private static bool BuildOrRestoreProjectOrSolution(string filePath, BuildOptions buildOptions) diff --git a/src/Cli/dotnet/Commands/Test/Options.cs b/src/Cli/dotnet/Commands/Test/Options.cs index d1b62db659c8..b17553c54365 100644 --- a/src/Cli/dotnet/Commands/Test/Options.cs +++ b/src/Cli/dotnet/Commands/Test/Options.cs @@ -16,7 +16,4 @@ internal record BuildOptions( bool NoLaunchProfileArguments, int DegreeOfParallelism, List UnmatchedTokens, - IEnumerable MSBuildArgs, - string? Timeout, - string? MinimumExpectedTests, - string? MaximumFailedTests); + IEnumerable MSBuildArgs); diff --git a/src/Cli/dotnet/Commands/Test/TestApplication.cs b/src/Cli/dotnet/Commands/Test/TestApplication.cs index 3d7f494913fc..7446cc55bf55 100644 --- a/src/Cli/dotnet/Commands/Test/TestApplication.cs +++ b/src/Cli/dotnet/Commands/Test/TestApplication.cs @@ -125,21 +125,6 @@ private string GetArguments(TestOptions testOptions) builder.Append($" {TestingPlatformOptions.DiagnosticOutputDirectoryOption.Name} {ArgumentEscaper.EscapeSingleArg(diagnosticOutputDirectoryPath)}"); } - if (_buildOptions.Timeout is { } timeout) - { - builder.Append($" {TestingPlatformOptions.TimeoutOption.Name} {ArgumentEscaper.EscapeSingleArg(timeout)}"); - } - - if (_buildOptions.MinimumExpectedTests is { } minimumExpectedTests) - { - builder.Append($" {TestingPlatformOptions.MinimumExpectedTestsOption.Name} {ArgumentEscaper.EscapeSingleArg(minimumExpectedTests)}"); - } - - if (_buildOptions.MaximumFailedTests is { } maximumFailedTests) - { - builder.Append($" {TestingPlatformOptions.MaximumFailedTestsOption.Name} {ArgumentEscaper.EscapeSingleArg(maximumFailedTests)}"); - } - foreach (var arg in _buildOptions.UnmatchedTokens) { builder.Append($" {ArgumentEscaper.EscapeSingleArg(arg)}"); diff --git a/src/Cli/dotnet/Commands/Test/TestCommandParser.cs b/src/Cli/dotnet/Commands/Test/TestCommandParser.cs index d3eb9316337b..435a16bfc6c5 100644 --- a/src/Cli/dotnet/Commands/Test/TestCommandParser.cs +++ b/src/Cli/dotnet/Commands/Test/TestCommandParser.cs @@ -238,9 +238,6 @@ private static Command GetTestingPlatformCliCommand() command.Options.Add(TestingPlatformOptions.ResultsDirectoryOption); command.Options.Add(TestingPlatformOptions.ConfigFileOption); command.Options.Add(TestingPlatformOptions.DiagnosticOutputDirectoryOption); - command.Options.Add(TestingPlatformOptions.TimeoutOption); - command.Options.Add(TestingPlatformOptions.MinimumExpectedTestsOption); - command.Options.Add(TestingPlatformOptions.MaximumFailedTestsOption); command.Options.Add(TestingPlatformOptions.MaxParallelTestModulesOption); command.Options.Add(CommonOptions.ArchitectureOption); command.Options.Add(CommonOptions.PropertiesOption); diff --git a/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs b/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs index 10d904302d63..2d217f0d2fdd 100644 --- a/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs +++ b/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs @@ -64,26 +64,7 @@ internal static class TestingPlatformOptions Arity = ArgumentArity.ExactlyOne }; - public static readonly Option TimeoutOption = new("--timeout") - { - Description = CliCommandStrings.CmdTimeoutDescription, - HelpName = CliCommandStrings.CmdTimeoutValue, - Arity = ArgumentArity.ExactlyOne - }; - - public static readonly Option MinimumExpectedTestsOption = new("--minimum-expected-tests") - { - Description = CliCommandStrings.CmdMinimumExpectedTestsDescription, - HelpName = CliCommandStrings.CmdMinimumExpectedTestsValue, - Arity = ArgumentArity.ExactlyOne - }; - public static readonly Option MaximumFailedTestsOption = new("--maximum-failed-tests") - { - Description = CliCommandStrings.CmdMaximumFailedTestsDescription, - HelpName = CliCommandStrings.CmdMaximumFailedTestsValue, - Arity = ArgumentArity.ExactlyOne - }; public static readonly Option MaxParallelTestModulesOption = new("--max-parallel-test-modules") { diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf index 7bcb7905501b..94efc2cb6cb2 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf @@ -583,26 +583,6 @@ Jedná se o ekvivalent odstranění project.assets.json. Maximální počet testovacích modulů, které je možné spustit paralelně. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. Zadejte parametr projektu, řešení, adresáře nebo testovacích modulů. @@ -877,16 +857,6 @@ Pokud zadaný adresář neexistuje, bude vytvořen. Podrobnosti výstupu testu - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. Vypíše seznam přenosných balíčků a balíčků nejvyšší úrovně. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf index 414d043cbe92..65a19925eee0 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf @@ -583,26 +583,6 @@ Dies entspricht dem Löschen von "project.assets.json". Die maximale Anzahl von Testmodulen, die parallel ausgeführt werden können. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. Geben Sie entweder die Option "Projekt", "Projektmappe", "Verzeichnis" oder "Testmodule" an. @@ -877,16 +857,6 @@ Das angegebene Verzeichnis wird erstellt, wenn es nicht vorhanden ist. Ausführlichkeit der Testausgabe. - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. Listet transitive Pakete und Pakete der obersten Ebene auf. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf index fa3f037ec0e9..0c70224d0fb6 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf @@ -583,26 +583,6 @@ Esta acción es equivalente a eliminar project.assets.json. Número máximo de módulos de prueba que se pueden ejecutar en paralelo. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. Especifique la opción de módulos de proyecto, solución, directorio o prueba. @@ -877,16 +857,6 @@ Si no existe, se creará el directorio especificado. Nivel de detalle de la salida de la prueba. - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. Contiene paquetes de transitivos y de nivel superior. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf index a56b74b1dc60..58ac20517183 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf @@ -583,26 +583,6 @@ Cela équivaut à supprimer project.assets.json. Nombre maximal de modules de test qui peuvent s’exécuter en parallèle. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. Spécifiez l'option des modules de projet, de solution, de répertoire ou de test. @@ -877,16 +857,6 @@ Le répertoire spécifié est créé, s'il n'existe pas déjà. Verbosité de la sortie de test. - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. Liste les packages transitifs et de niveau supérieur. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf index c7ff3f1a688e..a8bef7475054 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf @@ -583,26 +583,6 @@ Equivale a eliminare project.assets.json. Numero massimo di moduli di test che possono essere eseguiti in parallelo. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. Specifica l'opzione progetto, soluzione, directory o moduli di test. @@ -877,16 +857,6 @@ Se non esiste, la directory specificata verrà creata. Dettaglio dell'output di test. - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. Elenca i pacchetti transitivi e di primo livello. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf index 4ba64f249b17..9b375e7b01c6 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf @@ -583,26 +583,6 @@ This is equivalent to deleting project.assets.json. 並列で実行できるテスト モジュールの最大数。 - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. プロジェクト、ソリューション、ディレクトリ、またはテスト モジュールのオプションを指定してください。 @@ -877,16 +857,6 @@ The specified directory will be created if it does not exist. テスト出力の詳細。 - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. 推移的なパッケージと最上位レベルのパッケージを一覧表示します。 diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf index 7574b85ee5b1..c59ea0d15c17 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf @@ -583,26 +583,6 @@ project.assets.json을 삭제하는 것과 동일합니다. 병렬로 실행할 수 있는 최대 테스트 모듈 수입니다. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. 프로젝트, 솔루션, 디렉터리 또는 테스트 모듈 옵션을 지정하세요. @@ -877,16 +857,6 @@ The specified directory will be created if it does not exist. 테스트 출력의 세부 정보 표시입니다. - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. 전이적 패키지 및 최상위 패키지를 나열합니다. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf index f3a37e8751b1..da5a6da0c029 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf @@ -583,26 +583,6 @@ Jest to równoważne usunięciu pliku project.assets.json. Maksymalna liczba modułów testowych, które mogą być uruchamiane równolegle. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. Określ opcję projektu, rozwiązania, katalogu lub modułów testowych. @@ -877,16 +857,6 @@ Jeśli określony katalog nie istnieje, zostanie utworzony. Szczegółowość danych wyjściowych testu. - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. Zwraca listę pakietów przejściowych i pakietów najwyższego poziomu. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf index a6e565518fa7..a4efb9b9a107 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf @@ -583,26 +583,6 @@ Isso equivale a excluir o project.assets.json. O número máximo de módulos de teste que podem ser executados em paralelo. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. Especifique a opção de módulos de projeto, solução, diretório ou teste. @@ -877,16 +857,6 @@ O diretório especificado será criado se ele ainda não existir. Detalhamento da saída do teste. - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. Lista os pacotes de nível superior e transitivos. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf index 3b3472e605b4..32939d3e9b44 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf @@ -583,26 +583,6 @@ This is equivalent to deleting project.assets.json. Максимальное число тестовых модулей, которые могут выполняться параллельно. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. Укажите проект, решение, каталог или опцию тестового модуля. @@ -877,16 +857,6 @@ The specified directory will be created if it does not exist. Уровень детализации вывода тестов. - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. Список транзитивных пакетов и пакетов верхнего уровня. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf index 24718700e7bd..2c1c16dd85ad 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf @@ -583,26 +583,6 @@ project.assets.json öğesini silmeyle eşdeğerdir. Paralel olarak çalıştırılabilecek test modüllerinin maksimum sayısı. - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. Proje, çözüm, dizin veya test modülleri seçeneklerinden birini seçin. @@ -877,16 +857,6 @@ Belirtilen dizin yoksa oluşturulur. Test çıkışının ayrıntı düzeyi. - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. Geçişli ve üst düzey paketleri listeler. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf index 74578b4fbd12..30b4226e5f25 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf @@ -583,26 +583,6 @@ This is equivalent to deleting project.assets.json. 可并行运行的测试模块的最大数目。 - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. 指定项目、解决方案、目录或测试模块选项。 @@ -877,16 +857,6 @@ The specified directory will be created if it does not exist. 测试输出的详细程度。 - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. 列出可传递的包和顶级包。 diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf index 5a07a7bec22b..e6dfe726fd16 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf @@ -583,26 +583,6 @@ This is equivalent to deleting project.assets.json. 可平行執行的測試模組數目上限。 - - The maximum number of tests allowed to fail before the test run is terminated. - The maximum number of tests allowed to fail before the test run is terminated. - - - - COUNT - COUNT - - - - The minimum number of tests expected to be discovered. - The minimum number of tests expected to be discovered. - - - - COUNT - COUNT - - Specify either the project, solution, directory, or test modules option. 指定專案、解決方案、目錄或測試模組選項。 @@ -877,16 +857,6 @@ The specified directory will be created if it does not exist. 測試輸出的詳細程度。 - - The timeout for the test execution in milliseconds. - The timeout for the test execution in milliseconds. - - - - TIMEOUT - TIMEOUT - - Lists transitive and top-level packages. 列出可轉移和頂層套件。 From 06369bfe8f451d8be391b8a86ed88ef07688a165 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 Aug 2025 09:48:56 +0000 Subject: [PATCH 5/7] Update resource string descriptions for config-file and diagnostic-output-directory options Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com> --- src/Cli/dotnet/Commands/CliCommandStrings.resx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cli/dotnet/Commands/CliCommandStrings.resx b/src/Cli/dotnet/Commands/CliCommandStrings.resx index 8e37817029e4..9f1c63736fc3 100644 --- a/src/Cli/dotnet/Commands/CliCommandStrings.resx +++ b/src/Cli/dotnet/Commands/CliCommandStrings.resx @@ -566,14 +566,14 @@ This is equivalent to deleting project.assets.json. The specified directory will be created if it does not exist. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. CONFIG_FILE - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. DIAGNOSTIC_DIR From 9f3c6e777779f1326d54429564887efe5f7c08a2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 Aug 2025 09:57:24 +0000 Subject: [PATCH 6/7] Addressing PR comments Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com> --- src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf | 12 ++++++------ src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf | 12 ++++++------ src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf | 12 ++++++------ src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf | 12 ++++++------ src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf | 12 ++++++------ src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf | 12 ++++++------ src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf | 12 ++++++------ src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf | 12 ++++++------ .../dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf | 12 ++++++------ src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf | 12 ++++++------ src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf | 12 ++++++------ .../Commands/xlf/CliCommandStrings.zh-Hans.xlf | 12 ++++++------ .../Commands/xlf/CliCommandStrings.zh-Hant.xlf | 12 ++++++------ 13 files changed, 78 insertions(+), 78 deletions(-) diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf index 94efc2cb6cb2..54d2e6a461ec 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf @@ -407,8 +407,8 @@ Pro MSTest před 2.2.4 se časový limit použije pro všechny testovací příp - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ Pro MSTest před 2.2.4 se časový limit použije pro všechny testovací příp - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf index 65a19925eee0..b4ced47b66ed 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf @@ -407,8 +407,8 @@ für MSTest vor 2.2.4 wird das Timeout für alle Testfälle verwendet. - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ für MSTest vor 2.2.4 wird das Timeout für alle Testfälle verwendet. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf index 0c70224d0fb6..578940ddbe61 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf @@ -407,8 +407,8 @@ Para MSTest antes de 2.2.4, el tiempo de espera se usa para todos los casos de p - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ Para MSTest antes de 2.2.4, el tiempo de espera se usa para todos los casos de p - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf index 58ac20517183..db480bee1cdc 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf @@ -407,8 +407,8 @@ Pour MSTest avant la version 2.2.4, le délai d’expiration est utilisé pour - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ Pour MSTest avant la version 2.2.4, le délai d’expiration est utilisé pour - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf index a8bef7475054..26ec278b58e1 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf @@ -407,8 +407,8 @@ Per MSTest anteriore a 2.2.4, il timeout viene usato per tutti i test case. - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ Per MSTest anteriore a 2.2.4, il timeout viene usato per tutti i test case. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf index 9b375e7b01c6..8f055dda1fb1 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf @@ -407,8 +407,8 @@ For MSTest before 2.2.4, the timeout is used for all testcases. - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ For MSTest before 2.2.4, the timeout is used for all testcases. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf index c59ea0d15c17..414fbe8dcd00 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf @@ -407,8 +407,8 @@ MSTest 2.2.4 이전의 경우 시간 제한은 모든 테스트케이스에 사 - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ MSTest 2.2.4 이전의 경우 시간 제한은 모든 테스트케이스에 사 - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf index da5a6da0c029..523d1e5bc399 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf @@ -407,8 +407,8 @@ W przypadku platformy MSTest przed wersją 2.2.4 limit czasu jest używany dla w - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ W przypadku platformy MSTest przed wersją 2.2.4 limit czasu jest używany dla w - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf index a4efb9b9a107..af18509b4019 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.pt-BR.xlf @@ -407,8 +407,8 @@ Para MSTest antes de 2.2.4, o tempo limite é usado para todos os casos de teste - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ Para MSTest antes de 2.2.4, o tempo limite é usado para todos os casos de teste - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf index 32939d3e9b44..2ee1674dcc6f 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.ru.xlf @@ -407,8 +407,8 @@ For MSTest before 2.2.4, the timeout is used for all testcases. - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ For MSTest before 2.2.4, the timeout is used for all testcases. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf index 2c1c16dd85ad..68494a0d3280 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.tr.xlf @@ -407,8 +407,8 @@ MSTest için 2.2.4'ten önce, zaman aşımı tüm test durumları için kullanı - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ MSTest için 2.2.4'ten önce, zaman aşımı tüm test durumları için kullanı - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf index 30b4226e5f25..b5cc2f072eca 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hans.xlf @@ -407,8 +407,8 @@ For MSTest before 2.2.4, the timeout is used for all testcases. - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ For MSTest before 2.2.4, the timeout is used for all testcases. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. diff --git a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf index e6dfe726fd16..8d712091fbf1 100644 --- a/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf +++ b/src/Cli/dotnet/Commands/xlf/CliCommandStrings.zh-Hant.xlf @@ -407,8 +407,8 @@ For MSTest before 2.2.4, the timeout is used for all testcases. - The NuGet configuration file to use for the test execution. - The NuGet configuration file to use for the test execution. + Specifies a testconfig.json file. + Specifies a testconfig.json file. @@ -447,10 +447,10 @@ For MSTest before 2.2.4, the timeout is used for all testcases. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. - The directory where diagnostic output will be placed. -The specified directory will be created if it does not exist. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. + Output directory of the diagnostic logging. +If not specified the file will be generated inside the default 'TestResults' directory. From e58a0f3b3851116928b233f666a5d9dd9b7fd73f Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 8 Aug 2025 15:54:38 +0200 Subject: [PATCH 7/7] Update src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs --- src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs b/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs index 2d217f0d2fdd..e84407ba45cd 100644 --- a/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs +++ b/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs @@ -64,8 +64,6 @@ internal static class TestingPlatformOptions Arity = ArgumentArity.ExactlyOne }; - - public static readonly Option MaxParallelTestModulesOption = new("--max-parallel-test-modules") { Description = CliCommandStrings.CmdMaxParallelTestModulesDescription,