From 6df3ed7c7f3f53ba7090d2b6c4e17a2c2e3baf67 Mon Sep 17 00:00:00 2001 From: nohwnd Date: Fri, 15 May 2020 19:05:27 +0200 Subject: [PATCH 1/4] Add option to enable hang and crash dumps from commandline --- .../dotnet-test/LocalizableStrings.resx | 50 +++++++++++++++-- .../commands/dotnet-test/TestCommandParser.cs | 53 ++++++++++++++++++- .../dotnet-test/xlf/LocalizableStrings.cs.xlf | 45 ++++++++++++++++ .../dotnet-test/xlf/LocalizableStrings.de.xlf | 45 ++++++++++++++++ .../dotnet-test/xlf/LocalizableStrings.es.xlf | 45 ++++++++++++++++ .../dotnet-test/xlf/LocalizableStrings.fr.xlf | 45 ++++++++++++++++ .../dotnet-test/xlf/LocalizableStrings.it.xlf | 45 ++++++++++++++++ .../dotnet-test/xlf/LocalizableStrings.ja.xlf | 45 ++++++++++++++++ .../dotnet-test/xlf/LocalizableStrings.ko.xlf | 45 ++++++++++++++++ .../dotnet-test/xlf/LocalizableStrings.pl.xlf | 45 ++++++++++++++++ .../xlf/LocalizableStrings.pt-BR.xlf | 45 ++++++++++++++++ .../dotnet-test/xlf/LocalizableStrings.ru.xlf | 45 ++++++++++++++++ .../dotnet-test/xlf/LocalizableStrings.tr.xlf | 45 ++++++++++++++++ .../xlf/LocalizableStrings.zh-Hans.xlf | 45 ++++++++++++++++ .../xlf/LocalizableStrings.zh-Hant.xlf | 45 ++++++++++++++++ 15 files changed, 683 insertions(+), 5 deletions(-) diff --git a/src/Cli/dotnet/commands/dotnet-test/LocalizableStrings.resx b/src/Cli/dotnet/commands/dotnet-test/LocalizableStrings.resx index faf4a8d055bc..df329e1cd920 100644 --- a/src/Cli/dotnet/commands/dotnet-test/LocalizableStrings.resx +++ b/src/Cli/dotnet/commands/dotnet-test/LocalizableStrings.resx @@ -199,8 +199,17 @@ RunSettings arguments: More info here: https://aka.ms/vstest-collect - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + The target framework to run tests for. The target framework must also be specified in the project file. @@ -217,4 +226,39 @@ Outputs a 'Sequence.xml' file in the current directory that captures the order o The following arguments have been ignored : "{0}" - \ No newline at end of file + + Enables collecting crash dump on expected as well as unexpected testhost exit. + + + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + + + The type of crash dump to be collected. Implies --blame-crash. + + + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + + + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + + + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + + + DUMP_TYPE + + + DUMP_TYPE + + + TIMESPAN + + diff --git a/src/Cli/dotnet/commands/dotnet-test/TestCommandParser.cs b/src/Cli/dotnet/commands/dotnet-test/TestCommandParser.cs index df5a3fa4ed76..815a1b9fc18e 100644 --- a/src/Cli/dotnet/commands/dotnet-test/TestCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-test/TestCommandParser.cs @@ -50,9 +50,9 @@ public static Command Test() => .With(name: LocalizableStrings.CmdLoggerOption) .ForwardAsSingle(o => { - var loggersString = string.Join(";", GetSemiColonEscapedArgs(o.Arguments)); + var loggersString = string.Join(";", GetSemiColonEscapedArgs(o.Arguments)); - return $"-property:VSTestLogger=\"{loggersString}\""; + return $"-property:VSTestLogger=\"{loggersString}\""; })), CommonOptions.ConfigurationOption(LocalizableStrings.ConfigurationOptionDescription), CommonOptions.FrameworkOption(LocalizableStrings.FrameworkOptionDescription), @@ -91,6 +91,55 @@ public static Command Test() => LocalizableStrings.CmdBlameDescription, Accept.NoArguments() .ForwardAsSingle(o => "-property:VSTestBlame=true")), + Create.Option( + "--blame-crash", + LocalizableStrings.CmdBlameCrashDescription, + Accept.NoArguments() + .ForwardAsSingle(o => "-property:VSTestBlameCrash=true")), + Create.Option( + "--blame-crash-dump-type", + LocalizableStrings.CmdBlameCrashDumpTypeDescription, + Accept.AnyOneOf( + "full", + "mini") + .With(name: LocalizableStrings.CrashDumpTypeArgumentName, defaultValue: () => "full") + .ForwardAsMany(o => new[] { + "-property:VSTestBlameCrash=true", + $"-property:VSTestBlameCrashDumpType={o.Arguments.Single()}" })), + Create.Option( + "--blame-crash-collect-always", + LocalizableStrings.CmdBlameCrashCollectAlwaysDescription, + Accept.NoArguments() + .ForwardAsMany(o => new[] { + "-property:VSTestBlameCrash=true", + "-property:VSTestBlameCrashCollectAlways=true" + })), + Create.Option( + "--blame-hang", + LocalizableStrings.CmdBlameHangDescription, + Accept.NoArguments() + .ForwardAsSingle(o => "-property:VSTestBlameHang=true")), + Create.Option( + "--blame-hang-dump-type", + LocalizableStrings.CmdBlameHangDumpTypeDescription, + Accept.AnyOneOf( + "full", + "mini", + "none") + .With(name: LocalizableStrings.HangDumpTypeArgumentName, defaultValue: () => "full") + .ForwardAsMany(o => new[] { + "-property:VSTestBlameHang=true", + $"-property:VSTestBlameHangDumpType={o.Arguments.Single()}" })), + Create.Option( + "--blame-hang-timeout", + LocalizableStrings.CmdBlameHangTimeoutDescription, + Accept.ExactlyOneArgument() + .With(name: LocalizableStrings.HangTimeoutArgumentName) + .ForwardAsMany(o => new[] { + "-property:VSTestBlameHang=true", + $"-property:VSTestBlameHangTimeout={o.Arguments.Single()}" + })), + Create.Option( "--nologo|/nologo", LocalizableStrings.CmdNoLogo, diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.cs.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.cs.xlf index 820afbdbe35c..a6030956bde4 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.cs.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.cs.xlf @@ -12,6 +12,36 @@ Testovací ovladač pro platformu .NET + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" Následující argumenty se ignorovaly: {0} diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.de.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.de.xlf index 93f42fbe2ea4..96de14ed2c69 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.de.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.de.xlf @@ -12,6 +12,36 @@ Testtreiber für die .NET-Plattform + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" Die folgenden Argumente wurden ignoriert: {0} diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.es.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.es.xlf index 13ae592055e5..2d586bc78bc7 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.es.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.es.xlf @@ -12,6 +12,36 @@ Controlador de pruebas para la plataforma .NET + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" Se han omitido los argumentos siguientes: "{0}" diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.fr.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.fr.xlf index 0fcb83039c22..d7d68bb7b26b 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.fr.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.fr.xlf @@ -12,6 +12,36 @@ Pilote de test pour la plateforme .NET + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" Les arguments suivants ont été ignorés : "{0}" diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.it.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.it.xlf index 9276718f1bc5..58fffb90b4c7 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.it.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.it.xlf @@ -12,6 +12,36 @@ Driver di test per la piattaforma .NET + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" Gli argomenti seguenti sono stati ignorati: "{0}" diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ja.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ja.xlf index dc6a9ac5e09d..6435d985ad6e 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ja.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ja.xlf @@ -12,6 +12,36 @@ .NET Platform 用テスト ドライバー + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" 次の引数は無視されました: "{0}" diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ko.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ko.xlf index 5125d3797428..0180e7ff3803 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ko.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ko.xlf @@ -12,6 +12,36 @@ .NET 플랫폼용 테스트 드라이버입니다. + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" "{0}" 인수가 무시되었습니다. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pl.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pl.xlf index 7ff558fd0168..a84b7038462a 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pl.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pl.xlf @@ -12,6 +12,36 @@ Sterownik testów dla platformy .NET + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" Następujące argumenty zostały zignorowane: „{0}” diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pt-BR.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pt-BR.xlf index d2a1e3f569c0..5f33eda5c157 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pt-BR.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pt-BR.xlf @@ -12,6 +12,36 @@ Driver de Teste para a Plataforma .NET + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" Os argumentos a seguir foram ignorados: "{0}" diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ru.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ru.xlf index d6d504e52496..2a01261a4b54 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ru.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ru.xlf @@ -12,6 +12,36 @@ Драйвер тестов для платформы .NET + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" Следующие аргументы пропущены: "{0}" diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.tr.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.tr.xlf index 04e42a7adf52..47d06404db62 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.tr.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.tr.xlf @@ -12,6 +12,36 @@ .NET Platformunun Test Sürücüsü + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" Şu bağımsız değişkenler yoksayıldı: "{0}" diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hans.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hans.xlf index 9de65a19d0b6..5cc0bb2d0449 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hans.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hans.xlf @@ -12,6 +12,36 @@ 适用于 .NET 平台的测试驱动程序 + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" 已忽略以下参数:“{0}” diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hant.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hant.xlf index 6c731e684a8e..f807843f557e 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hant.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hant.xlf @@ -12,6 +12,36 @@ 適用於 .NET 平台的測試驅動程式 + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + TODO + TODO + + + + DUMP_TYPE + DUMP_TYPE + + + + DUMP_TYPE + DUMP_TYPE + + + + TIMESPAN + TIMESPAN + + The following arguments have been ignored : "{0}" 已忽略下列引數: "{0}" From 9f98bd8d002cf09aa647cea07a6126330e502b54 Mon Sep 17 00:00:00 2001 From: nohwnd Date: Fri, 15 May 2020 19:08:17 +0200 Subject: [PATCH 2/4] Generate resx --- .../dotnet-test/xlf/LocalizableStrings.cs.xlf | 55 ++++++++++++++----- .../dotnet-test/xlf/LocalizableStrings.de.xlf | 55 ++++++++++++++----- .../dotnet-test/xlf/LocalizableStrings.es.xlf | 55 ++++++++++++++----- .../dotnet-test/xlf/LocalizableStrings.fr.xlf | 55 ++++++++++++++----- .../dotnet-test/xlf/LocalizableStrings.it.xlf | 55 ++++++++++++++----- .../dotnet-test/xlf/LocalizableStrings.ja.xlf | 55 ++++++++++++++----- .../dotnet-test/xlf/LocalizableStrings.ko.xlf | 55 ++++++++++++++----- .../dotnet-test/xlf/LocalizableStrings.pl.xlf | 55 ++++++++++++++----- .../xlf/LocalizableStrings.pt-BR.xlf | 55 ++++++++++++++----- .../dotnet-test/xlf/LocalizableStrings.ru.xlf | 55 ++++++++++++++----- .../dotnet-test/xlf/LocalizableStrings.tr.xlf | 55 ++++++++++++++----- .../xlf/LocalizableStrings.zh-Hans.xlf | 55 ++++++++++++++----- .../xlf/LocalizableStrings.zh-Hant.xlf | 55 ++++++++++++++----- 13 files changed, 520 insertions(+), 195 deletions(-) diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.cs.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.cs.xlf index a6030956bde4..ffd0e3d33ca6 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.cs.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.cs.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - Spustí testy v režimu blame. Tato možnost je užitečná pro izolování problematického testu, který způsobuje chybové ukončení hostitele testů. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + Spustí testy v režimu blame. Tato možnost je užitečná pro izolování problematického testu, který způsobuje chybové ukončení hostitele testů. Výstupem je soubor Sequence.xml v aktuálním adresáři, do kterého se zaznamená pořadí provádění testů před chybovým ukončením. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.de.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.de.xlf index 96de14ed2c69..40cb307b3212 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.de.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.de.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - Hiermit wird der Test im Modus "Verantwortung zuweisen" ausgeführt. Diese Option hilft bei der Isolierung eines problematischen Tests, der den Absturz des Testhosts verursacht. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + Hiermit wird der Test im Modus "Verantwortung zuweisen" ausgeführt. Diese Option hilft bei der Isolierung eines problematischen Tests, der den Absturz des Testhosts verursacht. Im aktuellen Verzeichnis wird eine Datei namens "Sequence.xml" ausgegeben, in der die Reihenfolge der Testausführung vor dem Absturz erfasst wird. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.es.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.es.xlf index 2d586bc78bc7..3ad9763ebfd1 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.es.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.es.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - Ejecuta las pruebas en modo de culpa. Esta opción es útil para aislar una prueba problemática que provoca el bloqueo del host de prueba. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + Ejecuta las pruebas en modo de culpa. Esta opción es útil para aislar una prueba problemática que provoca el bloqueo del host de prueba. Crea un archivo de salida "Sequence.xml" en el directorio actual que captura el orden de ejecución de la prueba antes del bloqueo. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.fr.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.fr.xlf index d7d68bb7b26b..3fae39468695 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.fr.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.fr.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - Permet d'exécuter le test en mode blame (responsabilité). Cette option permet d'isoler un test problématique à l'origine d'un plantage sur l'hôte de test. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + Permet d'exécuter le test en mode blame (responsabilité). Cette option permet d'isoler un test problématique à l'origine d'un plantage sur l'hôte de test. Elle génère dans le répertoire actif un fichier de sortie nommé 'Sequence.xml', qui capture l'ordre d'exécution du test avant le plantage. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.it.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.it.xlf index 58fffb90b4c7..d319f11be271 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.it.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.it.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - Esegue i test in modalità di segnalazione errore. Questa opzione è utile per isolare il test problematico che causa l'arresto anomalo dell'host dei test. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + Esegue i test in modalità di segnalazione errore. Questa opzione è utile per isolare il test problematico che causa l'arresto anomalo dell'host dei test. Crea nella directory corrente un file di output denominato "Sequence.xml", in cui viene acquisito l'ordine di esecuzione del test prima dell'arresto anomalo. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ja.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ja.xlf index 6435d985ad6e..a584218117da 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ja.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ja.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - 変更履歴モードでテストを実行します。このオプションは、テスト ホストのクラッシュの原因となる問題のあるテストを分離する場合に役立ちます。 + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + 変更履歴モードでテストを実行します。このオプションは、テスト ホストのクラッシュの原因となる問題のあるテストを分離する場合に役立ちます。 現在のディレクトリに、クラッシュする前のテスト実行順序をキャプチャした出力ファイル 'Sequence.xml' が作成されます。 diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ko.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ko.xlf index 0180e7ff3803..886fad0ac21f 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ko.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ko.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - 테스트를 원인 모드로 실행합니다. 이 옵션은 테스트 호스트 크래시를 유발하는 문제 있는 테스트를 격리하는 데 유용합니다. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + 테스트를 원인 모드로 실행합니다. 이 옵션은 테스트 호스트 크래시를 유발하는 문제 있는 테스트를 격리하는 데 유용합니다. 크래시 이전의 테스트 실행 순서를 캡처하는 현재 디렉터리의 'Sequence.xml' 파일을 출력합니다. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pl.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pl.xlf index a84b7038462a..67410c816f36 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pl.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pl.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - Uruchom testy w trybie Blame. Ta opcja jest przydatna przy izolowaniu problematycznego testu powodującego awarię hosta testów. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + Uruchom testy w trybie Blame. Ta opcja jest przydatna przy izolowaniu problematycznego testu powodującego awarię hosta testów. Tworzy w bieżącym katalogu plik wyjściowy „Sequence.xml”, który przechwytuje kolejność wykonywania testu przed awarią. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pt-BR.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pt-BR.xlf index 5f33eda5c157..3357fcea3dad 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pt-BR.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pt-BR.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - Executar os testes no modo de acusação. Essa opção é útil para isolar um teste problemático que esteja causando falha no host de teste. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + Executar os testes no modo de acusação. Essa opção é útil para isolar um teste problemático que esteja causando falha no host de teste. Emite um arquivo 'Sequence.xml' no diretório atual que captura a ordem de execução de teste antes da falha. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ru.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ru.xlf index 2a01261a4b54..0d38d4127a98 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ru.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ru.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - Выполнение тестов в режиме обвинения. Этот параметр помогает изолировать проблемный тест, из-за которого в хосте для тестов возникает сбой. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + Выполнение тестов в режиме обвинения. Этот параметр помогает изолировать проблемный тест, из-за которого в хосте для тестов возникает сбой. В текущем каталоге создается выходной файл "Sequence.xml", в который записывается порядок выполнения теста перед сбоем. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.tr.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.tr.xlf index 47d06404db62..cf6844bff554 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.tr.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.tr.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - Testleri blame modunda çalıştırır. Bu seçenek, test konağının kilitlenmesine neden olan sorunlu testi yalıtmak için kullanışlıdır. + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + Testleri blame modunda çalıştırır. Bu seçenek, test konağının kilitlenmesine neden olan sorunlu testi yalıtmak için kullanışlıdır. Geçerli dizinde testin kilitlenmeden önceki test yürütme sırasını yakalayan ‘Sequence.xml’ adlı dosyayı çıkarır. diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hans.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hans.xlf index 5cc0bb2d0449..5615c5c62e78 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hans.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hans.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - 在追责模式下运行测试。此选项有助于隔离有问题的测试,以免导致测试主机崩溃。 + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + 在追责模式下运行测试。此选项有助于隔离有问题的测试,以免导致测试主机崩溃。 在当前目录中输出一个 "Sequence.xml" 文件,该文件在崩溃之前捕获测试的执行顺序。 diff --git a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hant.xlf b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hant.xlf index f807843f557e..0526afcc5c03 100644 --- a/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hant.xlf +++ b/src/Cli/dotnet/commands/dotnet-test/xlf/LocalizableStrings.zh-Hant.xlf @@ -13,33 +13,49 @@ - TODO - TODO + Enables collecting crash dump on expected as well as unexpected testhost exit. + Enables collecting crash dump on expected as well as unexpected testhost exit. - TODO - TODO + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. + Runs the tests in blame mode and enables collecting crash dump when testhost exits unexpectedly. +This option is currently only supported on Windows, and requires procdump.exe and procdump64.exe to be available in PATH. +Or PROCDUMP_PATH environment variable to be set, and point to a directory that contains procdump.exe and procdump64.exe. +The tools can be downloaded here: https://docs.microsoft.com/en-us/sysinternals/downloads/procdump +Implies --blame. - TODO - TODO + The type of crash dump to be collected. Implies --blame-crash. + The type of crash dump to be collected. Implies --blame-crash. - TODO - TODO + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. + Run the tests in blame mode and enables collecting hang dump when test exceeds the given timeout. Implies --blame-hang. - TODO - TODO + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. + The type of crash dump to be collected. When None, is used then test host is terminated on timeout, but no dump is collected. Implies --blame-hang. - TODO - TODO + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. + Per-test timeout, after which hang dump is triggered and the testhost process is terminated. +The timeout value is specified in the following format: 1.5h / 90m / 5400s / 5400000ms. When no unit is used (e.g. 5400000), the value is assumed to be in milliseconds. +When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit and NUnit the timeout is renewed after every test case, +For MSTest, the timeout is used for all testcases. +This option is currently supported only on Windows together with netcoreapp2.1 and newer. And on Linux with netcoreapp3.1 and newer. OSX and UWP are not supported. - Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash. -Outputs a 'Sequence.xml' file in the current directory that captures the order of execution of test before the crash. - 以 Blame 模式執行測試。此選項有助於釐清造成測試主機損毀的出錯測試。 + Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash or hang. +When a crash is detected, it creates an sequence file in TestResults/guid/guid_Sequence.xml that captures the order of tests that were run before the crash. +Based on the additional settings, hang dump or crash dump can also be collected. +Example: + Timeout the test run when test takes more than the default timeout of 1 hour, and collect crash dump when the test host exits unexpectedly. + (Crash dumps require additional setup, see below.) + dotnet test --blame-hang --blame-crash +Example: + Timeout the test run when a test takes more than 20 minutes and collect hang dump. + dotnet test --blame-hang-timeout 20min + + 以 Blame 模式執行測試。此選項有助於釐清造成測試主機損毀的出錯測試。 其會在目前的目錄 (擷取損毀前執行測試的順序) 中輸出 'Sequence.xml' 檔案。 From 01fef119fcc020a000461ea72cad7cc584fa967d Mon Sep 17 00:00:00 2001 From: William Li Date: Thu, 9 Apr 2020 22:47:43 -0700 Subject: [PATCH 3/4] Remove unnecessary test This test is testing CSC behavior. It does not test SDK code. The behaivor is also changed due to https://github.com/dotnet/roslyn/pull/42769 --- .../GivenThereAreDefaultItems.cs | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs index 7b073664a77c..bc6a290ba5a7 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs @@ -527,46 +527,6 @@ public void It_gives_an_error_message_if_duplicate_compile_items_are_included() .And.HaveStdOutContaining("EnableDefaultCompileItems"); } - [Fact] - public void It_gives_the_correct_error_if_duplicate_compile_items_are_included_and_default_items_are_disabled() - { - var testProject = new TestProject() - { - Name = "DuplicateCompileItems", - TargetFrameworks = "netstandard1.6", - IsSdkProject = true - }; - - var testAsset = _testAssetsManager.CreateTestProject(testProject, "DuplicateCompileItemsWithDefaultItemsDisabled") - .WithProjectChanges(project => - { - var ns = project.Root.Name.Namespace; - - project.Root.Element(ns + "PropertyGroup").Add( - new XElement(ns + "EnableDefaultCompileItems", "false")); - - var itemGroup = new XElement(ns + "ItemGroup"); - project.Root.Add(itemGroup); - itemGroup.Add(new XElement(ns + "Compile", new XAttribute("Include", @"**\*.cs"))); - itemGroup.Add(new XElement(ns + "Compile", new XAttribute("Include", @"DuplicateCompileItems.cs"))); - }); - - var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); - - WriteFile(Path.Combine(buildCommand.ProjectRootPath, "Class1.cs"), "public class Class1 {}"); - - buildCommand - .Execute() - .Should() - .Fail() - .And.HaveStdOutContaining("DuplicateCompileItems.cs") - // Class1.cs wasn't included multiple times, so it shouldn't be mentioned - .And.NotHaveStdOutMatching("Class1.cs") - // Default items weren't enabled, so the error message should come from the C# compiler and shouldn't include the information about default compile items - .And.HaveStdOutContaining("MSB3105") - .And.NotHaveStdOutMatching("EnableDefaultCompileItems"); - } - [Fact] public void Implicit_package_references_are_overridden_by_PackageReference_includes_in_the_project_file() { From 3e32e2c57bcf363fb7d3f759ff09018ed692d568 Mon Sep 17 00:00:00 2001 From: William Li Date: Thu, 9 Apr 2020 22:47:43 -0700 Subject: [PATCH 4/4] Remove unnecessary test This test is testing CSC behavior. It does not test SDK code. The behaivor is also changed due to https://github.com/dotnet/roslyn/pull/42769 --- .../GivenThereAreDefaultItems.cs | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs index 7b073664a77c..bc6a290ba5a7 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs @@ -527,46 +527,6 @@ public void It_gives_an_error_message_if_duplicate_compile_items_are_included() .And.HaveStdOutContaining("EnableDefaultCompileItems"); } - [Fact] - public void It_gives_the_correct_error_if_duplicate_compile_items_are_included_and_default_items_are_disabled() - { - var testProject = new TestProject() - { - Name = "DuplicateCompileItems", - TargetFrameworks = "netstandard1.6", - IsSdkProject = true - }; - - var testAsset = _testAssetsManager.CreateTestProject(testProject, "DuplicateCompileItemsWithDefaultItemsDisabled") - .WithProjectChanges(project => - { - var ns = project.Root.Name.Namespace; - - project.Root.Element(ns + "PropertyGroup").Add( - new XElement(ns + "EnableDefaultCompileItems", "false")); - - var itemGroup = new XElement(ns + "ItemGroup"); - project.Root.Add(itemGroup); - itemGroup.Add(new XElement(ns + "Compile", new XAttribute("Include", @"**\*.cs"))); - itemGroup.Add(new XElement(ns + "Compile", new XAttribute("Include", @"DuplicateCompileItems.cs"))); - }); - - var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); - - WriteFile(Path.Combine(buildCommand.ProjectRootPath, "Class1.cs"), "public class Class1 {}"); - - buildCommand - .Execute() - .Should() - .Fail() - .And.HaveStdOutContaining("DuplicateCompileItems.cs") - // Class1.cs wasn't included multiple times, so it shouldn't be mentioned - .And.NotHaveStdOutMatching("Class1.cs") - // Default items weren't enabled, so the error message should come from the C# compiler and shouldn't include the information about default compile items - .And.HaveStdOutContaining("MSB3105") - .And.NotHaveStdOutMatching("EnableDefaultCompileItems"); - } - [Fact] public void Implicit_package_references_are_overridden_by_PackageReference_includes_in_the_project_file() {