diff --git a/docs/Changelog-Platform.md b/docs/Changelog-Platform.md
index 03eccfb4c5..10b2bb3ef8 100644
--- a/docs/Changelog-Platform.md
+++ b/docs/Changelog-Platform.md
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
* Drop the dedicated .NET 8 and .NET 9 assets from Microsoft.Testing.Platform and its extensions, including the packaged-app controllers. The supported modern .NET targets are .NET 10 and .NET 11; existing .NET Standard and .NET Framework assets remain where provided, in [#12185](https://github.com/microsoft/testfx/pull/12185).
* Retarget the modern `Microsoft.Testing.Platform.ServerMode.Client.Sources` source slice to .NET 10. Consumers below .NET 10, including .NET 8 and .NET 9, now select the preserved Jsonite fallback instead of the in-box System.Text.Json source slice; legacy source compilation remains covered, in [#12185](https://github.com/microsoft/testfx/pull/12185).
+* Default `--show-stdout` and `--show-stderr` to `Failed` in all environments, instead of `All` outside AI-agent environments. To keep captured output for visible passing and skipped test results, pass `--show-stdout all --show-stderr all`, in [#12206](https://github.com/microsoft/testfx/pull/12206).
### Changed
diff --git a/src/Platform/Microsoft.Testing.Platform/Helpers/LLMEnvironmentDetector.cs b/src/Platform/Microsoft.Testing.Platform/Helpers/LLMEnvironmentDetector.cs
index 28c2fb46c1..c227698e15 100644
--- a/src/Platform/Microsoft.Testing.Platform/Helpers/LLMEnvironmentDetector.cs
+++ b/src/Platform/Microsoft.Testing.Platform/Helpers/LLMEnvironmentDetector.cs
@@ -5,7 +5,7 @@ namespace Microsoft.Testing.Platform.Helpers;
// Adapted from https://github.com/dotnet/sdk/blob/79e9664eb6918a0d6b78d1018e196a468901977f/src/Cli/dotnet/Telemetry/LLMEnvironmentDetectorForTelemetry.cs
// Diverged from the upstream telemetry-only version so detection results can drive
-// user-facing platform defaults (ANSI mode, banner, --show-stdout/--show-stderr).
+// user-facing platform defaults (ANSI mode, banner).
// IMPORTANT: keep the environment-variable list below in sync with
// test/Utilities/Microsoft.Testing.TestInfrastructure/WellKnownEnvironmentVariables.cs
// (LLMEnvironmentVariables) so child processes spawned by acceptance tests can be
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalResources.resx b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalResources.resx
index 77721cf92e..fc13b308ce 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalResources.resx
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalResources.resx
@@ -277,12 +277,12 @@ Valid values are 'Minimal', 'Normal', 'Detailed'. Default is 'Normal'. Use '--sh
Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporterOptions.cs b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporterOptions.cs
index 8180ec2165..411ea47969 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporterOptions.cs
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporterOptions.cs
@@ -69,12 +69,12 @@ internal sealed class TerminalTestReporterOptions
///
/// Gets a value indicating when to show standard output.
///
- public OutputShowMode ShowStdout { get; init; } = OutputShowMode.All;
+ public OutputShowMode ShowStdout { get; init; } = OutputShowMode.Failed;
///
/// Gets a value indicating when to show standard error output.
///
- public OutputShowMode ShowStderr { get; init; } = OutputShowMode.All;
+ public OutputShowMode ShowStderr { get; init; } = OutputShowMode.Failed;
///
/// Gets the visible-output silence threshold for the non-cursor heartbeat renderer (E1). Hidden test
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.cs.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.cs.xlf
index 97c0ebdb25..3ad67bb36a 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.cs.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.cs.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Určuje, kdy se má zobrazit zachycený výstup chyby testu.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Určuje, kdy se má zobrazit zachycený výstup chyby testu.
Platné hodnoty jsou All, Failed, None. Výchozí hodnota je All (nebo Failed, když se zjistí prostředí LLM / agenta AI).{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Určuje, kdy se má zobrazit zachycený standardní výstup testu.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Určuje, kdy se má zobrazit zachycený standardní výstup testu.
Platné hodnoty jsou All, Failed, None. Výchozí hodnota je All (nebo Failed, když se zjistí prostředí LLM / agenta AI).{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.de.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.de.xlf
index c1dcac0fee..fd1339400e 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.de.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.de.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Legt fest, wann die erfasste Fehlerausgabe eines Tests angezeigt werden soll.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Legt fest, wann die erfasste Fehlerausgabe eines Tests angezeigt werden soll.
Gültige Werte sind „All“, „Failed“ und „None“. Der Standardwert ist „All“ (oder „Failed“, wenn eine LLM-/KI-Agent-Umgebung erkannt wird).{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Legt fest, wann die erfasste Standardausgabe eines Tests angezeigt werden soll.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Legt fest, wann die erfasste Standardausgabe eines Tests angezeigt werden soll.
Gültige Werte sind „All“, „Failed“ und „None“. Der Standardwert ist „All“ (oder „Failed“, wenn eine LLM-/KI-Agent-Umgebung erkannt wird).{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.es.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.es.xlf
index e85d88937e..09aa54d2f3 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.es.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.es.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Determina cuándo mostrar la salida de error capturada de una prueba.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Determina cuándo mostrar la salida de error capturada de una prueba.
Los valores válidos son "All", "Failed", "None". El valor predeterminado es "All" (o "Failed" cuando se detecta un entorno de agente LLM/AI).{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Determina cuándo mostrar la salida estándar capturada de una prueba.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Determina cuándo mostrar la salida estándar capturada de una prueba.
Los valores válidos son "All", "Failed", "None". El valor predeterminado es "All" (o "Failed" cuando se detecta un entorno de agente LLM/AI).{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.fr.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.fr.xlf
index b1f2222fce..84ef983224 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.fr.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.fr.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Permet de déterminer quand afficher la sortie d’erreur capturée d’un test.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Permet de déterminer quand afficher la sortie d’erreur capturée d’un test.
Les valeurs valides sont « All », « Failed » et « None ». La valeur par défaut est « All » (ou « Failed » lorsqu’un environnement d’agent LLM/IA est détecté).{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Permet de déterminer quand afficher la sortie standard capturée d’un test.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Permet de déterminer quand afficher la sortie standard capturée d’un test.
Les valeurs valides sont « All », « Failed » et « None ». La valeur par défaut est « All » (ou « Failed » lorsqu’un environnement d’agent LLM/IA est détecté).{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.it.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.it.xlf
index a0a23a13da..b9ef0b7c20 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.it.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.it.xlf
@@ -552,15 +552,15 @@ Passando l'opzione senza un valore, la si attiva.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Determina quando mostrare l'output degli errori acquisito di un test.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Determina quando mostrare l'output degli errori acquisito di un test.
I valori validi sono 'All', 'Failed', 'None'. L'impostazione predefinita è 'All' (o 'Failed' quando viene rilevato un ambiente agente LLM/IA).{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Determina quando mostrare l'output standard acquisito di un test.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Determina quando mostrare l'output standard acquisito di un test.
I valori validi sono 'All', 'Failed', 'None'. L'impostazione predefinita è 'All' (o 'Failed' quando viene rilevato un ambiente agente LLM/IA).{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ja.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ja.xlf
index 590424b45d..368d2a2d76 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ja.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ja.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- テストのキャプチャされたエラー出力を表示するタイミングを決定します。
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ テストのキャプチャされたエラー出力を表示するタイミングを決定します。
有効な値は 'All'、'Failed'、'None' です。既定値は 'All' (LLM/AI エージェント環境が検出された場合は 'Failed') です。{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- テストのキャプチャされた標準の出力を表示するタイミングを決定します。
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ テストのキャプチャされた標準の出力を表示するタイミングを決定します。
有効な値は 'All'、'Failed'、'None' です。既定値は 'All' (LLM/AI エージェント環境が検出された場合は 'Failed') です。{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ko.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ko.xlf
index 867b393617..cb9f6e4277 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ko.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ko.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- 테스트에서 캡처한 오류 출력을 언제 표시할지 결정합니다.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ 테스트에서 캡처한 오류 출력을 언제 표시할지 결정합니다.
유효한 값은 'All', 'Failed', 'None'입니다. LLM/AI 에이전트 환경이 감지되면 기본값은 'All'(또는 'Failed')입니다.{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- 테스트에서 캡처한 표준 출력을 언제 표시할지 결정합니다.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ 테스트에서 캡처한 표준 출력을 언제 표시할지 결정합니다.
유효한 값은 'All', 'Failed', 'None'입니다. LLM/AI 에이전트 환경이 감지되면 기본값은 'All'(또는 'Failed')입니다.{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.pl.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.pl.xlf
index d9c9992bcb..b1e9750c07 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.pl.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.pl.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Określa, kiedy przechwycone dane wyjściowe błędów testu mają być wyświetlane.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Określa, kiedy przechwycone dane wyjściowe błędów testu mają być wyświetlane.
Prawidłowe wartości to „All”, „Failed”, „None”. Wartość domyślna to „All” (lub „Failed” po wykryciu środowiska modelu LLM / agenta AI).{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Określa, kiedy pokazać przechwycone standardowe dane wyjściowe testu.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Określa, kiedy pokazać przechwycone standardowe dane wyjściowe testu.
Prawidłowe wartości to „All”, „Failed”, „None”. Wartość domyślna to „All” (lub „Failed” po wykryciu środowiska modelu LLM / agenta AI).{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.pt-BR.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.pt-BR.xlf
index 4582f9c6a2..b0888efb40 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.pt-BR.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.pt-BR.xlf
@@ -552,15 +552,15 @@ Passar a opção sem um valor a ativa.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Determina quando mostrar a saída de erro capturada de um teste.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Determina quando mostrar a saída de erro capturada de um teste.
Os valores válidos são 'All', 'Failed', 'None'. O padrão é 'All' (ou 'Failed' quando um ambiente de agente de LLM/IA é detectado).{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Determina quando mostrar a saída padrão capturada de um teste.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Determina quando mostrar a saída padrão capturada de um teste.
Os valores válidos são 'All', 'Failed', 'None'. O padrão é 'All' (ou 'Failed' quando um ambiente de agente de LLM/IA é detectado).{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ru.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ru.xlf
index 96bb65ef64..d08015b657 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ru.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.ru.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Определяет, когда показывать зафиксированный вывод ошибок теста.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Определяет, когда показывать зафиксированный вывод ошибок теста.
Допустимые значения: "All" (Все), "Failed" (Сбой), "None" (Нет). Значение по умолчанию — "All" (Все) (или "Failed" (Сбой), если обнаружена среда агента LLM/ИИ).{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Определяет, когда показывать зафиксированный стандартный вывод теста.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Определяет, когда показывать зафиксированный стандартный вывод теста.
Допустимые значения: "All" (Все), "Failed" (Сбой), "None" (Нет). Значение по умолчанию — "All" (Все) (или "Failed" (Сбой), если обнаружена среда агента LLM/ИИ).{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.tr.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.tr.xlf
index 671b523415..43e7d9e0ac 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.tr.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.tr.xlf
@@ -552,15 +552,15 @@ Seçenek bir değer olmadan geçerse etkinleşir.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Testte yakalanan hata çıktısının ne zaman gösterileceğini belirler.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Testte yakalanan hata çıktısının ne zaman gösterileceğini belirler.
Geçerli değerler: 'All', 'Failed', 'None'. Varsayılan değer 'All' (veya bir LLM/AI destekli aracı ortamı algılandığında 'Failed').{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- Testte yakalanan standart çıktının ne zaman gösterileceğini belirler.
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ Testte yakalanan standart çıktının ne zaman gösterileceğini belirler.
Geçerli değerler: 'All', 'Failed', 'None'. Varsayılan değer 'All' (veya bir LLM/AI destekli aracı ortamı algılandığında 'Failed').{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.zh-Hans.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.zh-Hans.xlf
index 264f773ac8..d747db0c02 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.zh-Hans.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.zh-Hans.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- 确定何时显示测试捕获的错误输出。
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ 确定何时显示测试捕获的错误输出。
有效值为 'All'、'Failed'、'None'。默认值为 'All' (如果检测到 LLM/AI 智能体环境,则为 'Failed')。{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- 确定何时显示测试的捕获标准输出。
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ 确定何时显示测试的捕获标准输出。
有效值为 'All'、'Failed'、'None'。默认值为 'All' (如果检测到 LLM/AI 智能体环境,则为 'Failed')。{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.zh-Hant.xlf b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.zh-Hant.xlf
index e64a57a3dd..69b6d79ece 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.zh-Hant.xlf
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/xlf/TerminalResources.zh-Hant.xlf
@@ -552,15 +552,15 @@ Passing the option without a value turns it on.
Determines when to show captured error output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- 決定何時顯示測試擷取到的錯誤輸出。
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ 決定何時顯示測試擷取到的錯誤輸出。
有效值為 'All'、'Failed'、'None'。預設值為 'All' (或偵測到 LLM/AI 代理程式環境時為 'Failed')。{Locked="All"}{Locked="Failed"}{Locked="None"}Determines when to show captured standard output of a test.
-Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
- 決定何時顯示測試擷取到的標準輸出。
+Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
+ 決定何時顯示測試擷取到的標準輸出。
有效值為 'All'、'Failed'、'None'。預設值為 'All' (或偵測到 LLM/AI 代理程式環境時為 'Failed')。{Locked="All"}{Locked="Failed"}{Locked="None"}
diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.Initialization.cs b/src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.Initialization.cs
index 5ed75852a9..6e378e95f6 100644
--- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.Initialization.cs
+++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.Initialization.cs
@@ -124,8 +124,8 @@ await _policiesService.RegisterOnAbortCallbackAsync(
}
}
- OutputShowMode showStdout = GetShowOutputMode(_commandLineOptions, TerminalTestReporterCommandLineOptionsProvider.ShowStdoutOption, isLLMEnvironment);
- OutputShowMode showStderr = GetShowOutputMode(_commandLineOptions, TerminalTestReporterCommandLineOptionsProvider.ShowStderrOption, isLLMEnvironment);
+ OutputShowMode showStdout = GetShowOutputMode(_commandLineOptions, TerminalTestReporterCommandLineOptionsProvider.ShowStdoutOption);
+ OutputShowMode showStderr = GetShowOutputMode(_commandLineOptions, TerminalTestReporterCommandLineOptionsProvider.ShowStderrOption);
int slowestTestsCount = GetSlowestTestsCount(_commandLineOptions);
TestResultVisibility showTestResults = GetShowTestResultsVisibility(_commandLineOptions);
@@ -194,11 +194,7 @@ internal static int GetSlowestTestsCount(ICommandLineOptions commandLineOptions)
? count
: 0;
- // When the option is absent, default to OutputShowMode.Failed when running under a known
- // LLM/AI environment (less token noise for agents) and to OutputShowMode.All otherwise.
- // An explicit --show-stdout/--show-stderr value always wins over the LLM-aware default.
- // TODO(#8772): Update the --show-stdout/--show-stderr help text to reflect the LLM-aware default.
- private static OutputShowMode GetShowOutputMode(ICommandLineOptions commandLineOptions, string optionName, bool isLLMEnvironment)
+ private static OutputShowMode GetShowOutputMode(ICommandLineOptions commandLineOptions, string optionName)
=> commandLineOptions.TryGetOptionArgumentList(optionName, out string[]? arguments) && arguments is { Length: > 0 }
? arguments[0] switch
{
@@ -206,7 +202,7 @@ string s when TerminalTestReporterCommandLineOptionsProvider.ShowOutputFailedArg
string s when TerminalTestReporterCommandLineOptionsProvider.ShowOutputNoneArgument.Equals(s, StringComparison.OrdinalIgnoreCase) => OutputShowMode.None,
_ => OutputShowMode.All,
}
- : isLLMEnvironment ? OutputShowMode.Failed : OutputShowMode.All;
+ : OutputShowMode.Failed;
// Resolves which per-test terminal blocks are rendered. An explicit --show-test-results value or its passive
// configuration default wins over --output; an explicit value wins over the passive default. When neither is
diff --git a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/HelpInfoTests.cs b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/HelpInfoTests.cs
index d36216aee3..9ef1b18983 100644
--- a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/HelpInfoTests.cs
+++ b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/HelpInfoTests.cs
@@ -97,10 +97,10 @@ Passing the option without a value turns it on.
Show the specified number of slowest tests (by reported execution duration) in the run summary. Expects a positive integer.
--show-stderr
Determines when to show captured error output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-stdout
Determines when to show captured standard output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-test-results
Selects which test outcomes render a per-test result block (with its informative details, stack trace, and captured output) in the terminal.
Valid values are 'passed', 'failed' (also covers errored, timed out, and canceled tests), 'skipped', 'all', and 'none'. Combine multiple values as a comma- or space-separated list, or by repeating the option; 'all' and 'none' cannot be combined with any other value.
diff --git a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/LegacyLifecycleObjectModelTests.cs b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/LegacyLifecycleObjectModelTests.cs
index cfafeae1ab..8c5e7a69bd 100644
--- a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/LegacyLifecycleObjectModelTests.cs
+++ b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/LegacyLifecycleObjectModelTests.cs
@@ -222,7 +222,7 @@ public async Task LifecycleInheritanceModes_RunInTargetFrameworkHost(string tfm)
string assemblyName = $"LegacyLifecycleObjectModel_{tfm.Replace('.', '_')}";
var testHost = TestHost.LocateFrom(AssetFixture.TargetAssetPath, assemblyName, tfm);
TestHostResult result = await testHost.ExecuteAsync(
- "--output Detailed",
+ "--output Detailed --show-stdout all",
cancellationToken: TestContext.CancellationToken);
result.AssertExitCodeIs(ExitCode.Success);
diff --git a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/ShowOutputOptionTests.cs b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/ShowOutputOptionTests.cs
index 7d524e5c11..039c496d80 100644
--- a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/ShowOutputOptionTests.cs
+++ b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/ShowOutputOptionTests.cs
@@ -22,6 +22,7 @@ public async Task ShowStdout_None_NeverShowsStandardOutput(string tfm)
testHostResult.AssertOutputDoesNotContain("Standard output");
testHostResult.AssertOutputDoesNotContain("stdout from failing test");
testHostResult.AssertOutputDoesNotContain("stdout from passing test");
+ testHostResult.AssertOutputDoesNotContain("stdout from skipped test");
}
[TestMethod]
@@ -35,6 +36,7 @@ public async Task ShowStdout_Failed_ShowsStandardOutputOnlyForFailedTests(string
testHostResult.AssertOutputContains("stdout from failing test");
testHostResult.AssertOutputDoesNotContain("stdout from passing test");
+ testHostResult.AssertOutputDoesNotContain("stdout from skipped test");
}
[TestMethod]
@@ -48,19 +50,26 @@ public async Task ShowStdout_All_ShowsStandardOutputForAllTests(string tfm)
testHostResult.AssertOutputContains("stdout from failing test");
testHostResult.AssertOutputContains("stdout from passing test");
+ testHostResult.AssertOutputContains("stdout from skipped test");
}
[TestMethod]
[DynamicData(nameof(TargetFrameworks.AllForDynamicData), typeof(TargetFrameworks))]
- public async Task ShowStdout_Default_ShowsStandardOutputForAllTests(string tfm)
+ public async Task ShowStdout_Default_ShowsStandardOutputOnlyForFailedTests(string tfm)
{
var testHost = TestHost.LocateFrom(AssetFixture.ProjectPath, TestAssetFixture.ProjectName, tfm);
TestHostResult testHostResult = await testHost.ExecuteAsync(
"--output detailed",
cancellationToken: TestContext.CancellationToken);
+ testHostResult.AssertExitCodeIs(ExitCode.AtLeastOneTestFailed);
testHostResult.AssertOutputContains("stdout from failing test");
- testHostResult.AssertOutputContains("stdout from passing test");
+ testHostResult.AssertOutputDoesNotContain("stdout from passing test");
+ testHostResult.AssertOutputDoesNotContain("stdout from skipped test");
+ testHostResult.AssertOutputContains("total: 3");
+ testHostResult.AssertOutputContains("failed: 1");
+ testHostResult.AssertOutputContains("succeeded: 1");
+ testHostResult.AssertOutputContains("skipped: 1");
}
[TestMethod]
@@ -78,6 +87,7 @@ public async Task ShowStdout_DefaultInLLMEnvironment_ShowsStandardOutputOnlyForF
testHostResult.AssertOutputContains("stdout from failing test");
testHostResult.AssertOutputDoesNotContain("stdout from passing test");
+ testHostResult.AssertOutputDoesNotContain("stdout from skipped test");
}
[TestMethod]
@@ -95,6 +105,7 @@ public async Task ShowStdout_All_InLLMEnvironment_StillShowsAllStandardOutput(st
testHostResult.AssertOutputContains("stdout from failing test");
testHostResult.AssertOutputContains("stdout from passing test");
+ testHostResult.AssertOutputContains("stdout from skipped test");
}
[TestMethod]
@@ -122,6 +133,7 @@ public async Task ShowStderr_None_NeverShowsErrorOutput(string tfm)
testHostResult.AssertOutputDoesNotContain("Error output");
testHostResult.AssertOutputDoesNotContain("stderr from failing test");
testHostResult.AssertOutputDoesNotContain("stderr from passing test");
+ testHostResult.AssertOutputDoesNotContain("stderr from skipped test");
}
[TestMethod]
@@ -135,6 +147,7 @@ public async Task ShowStderr_Failed_ShowsErrorOutputOnlyForFailedTests(string tf
testHostResult.AssertOutputContains("stderr from failing test");
testHostResult.AssertOutputDoesNotContain("stderr from passing test");
+ testHostResult.AssertOutputDoesNotContain("stderr from skipped test");
}
[TestMethod]
@@ -148,19 +161,26 @@ public async Task ShowStderr_All_ShowsErrorOutputForAllTests(string tfm)
testHostResult.AssertOutputContains("stderr from failing test");
testHostResult.AssertOutputContains("stderr from passing test");
+ testHostResult.AssertOutputContains("stderr from skipped test");
}
[TestMethod]
[DynamicData(nameof(TargetFrameworks.AllForDynamicData), typeof(TargetFrameworks))]
- public async Task ShowStderr_Default_ShowsErrorOutputForAllTests(string tfm)
+ public async Task ShowStderr_Default_ShowsErrorOutputOnlyForFailedTests(string tfm)
{
var testHost = TestHost.LocateFrom(AssetFixture.ProjectPath, TestAssetFixture.ProjectName, tfm);
TestHostResult testHostResult = await testHost.ExecuteAsync(
"--output detailed",
cancellationToken: TestContext.CancellationToken);
+ testHostResult.AssertExitCodeIs(ExitCode.AtLeastOneTestFailed);
testHostResult.AssertOutputContains("stderr from failing test");
- testHostResult.AssertOutputContains("stderr from passing test");
+ testHostResult.AssertOutputDoesNotContain("stderr from passing test");
+ testHostResult.AssertOutputDoesNotContain("stderr from skipped test");
+ testHostResult.AssertOutputContains("total: 3");
+ testHostResult.AssertOutputContains("failed: 1");
+ testHostResult.AssertOutputContains("succeeded: 1");
+ testHostResult.AssertOutputContains("skipped: 1");
}
[TestMethod]
@@ -178,6 +198,7 @@ public async Task ShowStderr_DefaultInLLMEnvironment_ShowsErrorOutputOnlyForFail
testHostResult.AssertOutputContains("stderr from failing test");
testHostResult.AssertOutputDoesNotContain("stderr from passing test");
+ testHostResult.AssertOutputDoesNotContain("stderr from skipped test");
}
[TestMethod]
@@ -195,6 +216,7 @@ public async Task ShowStderr_All_InLLMEnvironment_StillShowsAllErrorOutput(strin
testHostResult.AssertOutputContains("stderr from failing test");
testHostResult.AssertOutputContains("stderr from passing test");
+ testHostResult.AssertOutputContains("stderr from skipped test");
}
[TestMethod]
@@ -259,6 +281,14 @@ public void PassingTest()
Console.WriteLine("stdout from passing test");
Console.Error.WriteLine("stderr from passing test");
}
+
+ [TestMethod]
+ public void SkippedTest()
+ {
+ Console.WriteLine("stdout from skipped test");
+ Console.Error.WriteLine("stderr from skipped test");
+ Assert.Inconclusive("intentional skip");
+ }
}
""";
}
diff --git a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/TestDependencyExecutionTests.cs b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/TestDependencyExecutionTests.cs
index a8892bd3f6..1a85dc1339 100644
--- a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/TestDependencyExecutionTests.cs
+++ b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/TestDependencyExecutionTests.cs
@@ -35,7 +35,7 @@ public async Task DependsOn_RunsPrerequisitesFirst_AndLetsIndependentBranchesOve
{
TestHost testHost = AssetFixture.GetTestHost(GraphProjectName, tfm);
- TestHostResult result = await testHost.ExecuteAsync("--output detailed", cancellationToken: TestContext.CancellationToken);
+ TestHostResult result = await testHost.ExecuteAsync("--output detailed --show-stdout all", cancellationToken: TestContext.CancellationToken);
Assert.AreEqual(0, result.ExitCode, result.StandardOutput);
Assert.Contains("succeeded: 4", result.StandardOutput);
diff --git a/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoAllExtensionsTests.cs b/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoAllExtensionsTests.cs
index 2c3a19f554..65cedcfec6 100644
--- a/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoAllExtensionsTests.cs
+++ b/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoAllExtensionsTests.cs
@@ -103,10 +103,10 @@ Passing the option without a value turns it on.
Show the specified number of slowest tests (by reported execution duration) in the run summary. Expects a positive integer.
--show-stderr
Determines when to show captured error output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-stdout
Determines when to show captured standard output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-test-results
Selects which test outcomes render a per-test result block (with its informative details, stack trace, and captured output) in the terminal.
Valid values are 'passed', 'failed' (also covers errored, timed out, and canceled tests), 'skipped', 'all', and 'none'. Combine multiple values as a comma- or space-separated list, or by repeating the option; 'all' and 'none' cannot be combined with any other value.
@@ -491,12 +491,12 @@ Passing the option without a value turns it on.
Arity: 1
Hidden: False
Description: Determines when to show captured error output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-stdout
Arity: 1
Hidden: False
Description: Determines when to show captured standard output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-test-results
Arity: 1..N
Hidden: False
diff --git a/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoTests.cs b/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoTests.cs
index 2bef7db501..edff2c739e 100644
--- a/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoTests.cs
+++ b/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoTests.cs
@@ -91,10 +91,10 @@ Passing the option without a value turns it on.
Show the specified number of slowest tests (by reported execution duration) in the run summary. Expects a positive integer.
--show-stderr
Determines when to show captured error output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-stdout
Determines when to show captured standard output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-test-results
Selects which test outcomes render a per-test result block (with its informative details, stack trace, and captured output) in the terminal.
Valid values are 'passed', 'failed' (also covers errored, timed out, and canceled tests), 'skipped', 'all', and 'none'. Combine multiple values as a comma- or space-separated list, or by repeating the option; 'all' and 'none' cannot be combined with any other value.
@@ -364,12 +364,12 @@ Passing the option without a value turns it on.
Arity: 1
Hidden: False
Description: Determines when to show captured error output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' \(or 'Failed' when an LLM/AI agent environment is detected\).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-stdout
Arity: 1
Hidden: False
Description: Determines when to show captured standard output of a test.
- Valid values are 'All', 'Failed', 'None'. Default is 'All' \(or 'Failed' when an LLM/AI agent environment is detected\).
+ Valid values are 'All', 'Failed', 'None'. Default is 'Failed'.
--show-test-results
Arity: 1..N
Hidden: False
diff --git a/test/UnitTests/Microsoft.Testing.Platform.UnitTests/OutputDevice/Terminal/TerminalTestReporterTests.cs b/test/UnitTests/Microsoft.Testing.Platform.UnitTests/OutputDevice/Terminal/TerminalTestReporterTests.cs
index 00e0255e8f..3941333688 100644
--- a/test/UnitTests/Microsoft.Testing.Platform.UnitTests/OutputDevice/Terminal/TerminalTestReporterTests.cs
+++ b/test/UnitTests/Microsoft.Testing.Platform.UnitTests/OutputDevice/Terminal/TerminalTestReporterTests.cs
@@ -255,6 +255,8 @@ public void NonAnsiTerminal_OutputFormattingIsCorrect()
var terminalReporter = new TerminalTestReporter(stringBuilderConsole, static () => false, new TerminalTestReporterOptions
{
ShowTestResults = TestResultVisibility.All,
+ ShowStdout = OutputShowMode.All,
+ ShowStderr = OutputShowMode.All,
// Like --no-ansi in commandline, should disable ANSI altogether.
AnsiMode = AnsiMode.NoAnsi,
@@ -408,6 +410,8 @@ public void SimpleAnsiTerminal_OutputFormattingIsCorrect()
var terminalReporter = new TerminalTestReporter(stringBuilderConsole, static () => false, new TerminalTestReporterOptions
{
ShowTestResults = TestResultVisibility.All,
+ ShowStdout = OutputShowMode.All,
+ ShowStderr = OutputShowMode.All,
// Like if we autodetect that we are in CI (e.g. by looking at TF_BUILD, and we don't disable ANSI.
AnsiMode = AnsiMode.SimpleAnsi,
@@ -504,6 +508,9 @@ public void AnsiTerminal_OutputFormattingIsCorrect()
var terminalReporter = new TerminalTestReporter(stringBuilderConsole, static () => false, new TerminalTestReporterOptions
{
ShowTestResults = TestResultVisibility.All,
+ ShowStdout = OutputShowMode.All,
+ ShowStderr = OutputShowMode.All,
+
// Like if we autodetect that we are in ANSI capable terminal.
AnsiMode = AnsiMode.ForceAnsi,
@@ -633,6 +640,9 @@ public void AnsiTerminal_OutputProgressFrameIsCorrect()
var terminalReporter = new TerminalTestReporter(stringBuilderConsole, static () => false, new TerminalTestReporterOptions
{
ShowTestResults = TestResultVisibility.All,
+ ShowStdout = OutputShowMode.All,
+ ShowStderr = OutputShowMode.All,
+
// Like if we autodetect that we are in ANSI capable terminal.
AnsiMode = AnsiMode.ForceAnsi,
@@ -1027,6 +1037,15 @@ public async Task TestProgressStateAwareTerminal_RenderFailure_LogsAndSuppresses
Assert.Contains("EraseProgress", terminal.Events);
}
+ [TestMethod]
+ public void TerminalTestReporterOptions_Default_ShowsOutputOnlyForFailedTests()
+ {
+ var options = new TerminalTestReporterOptions();
+
+ Assert.AreEqual(OutputShowMode.Failed, options.ShowStdout);
+ Assert.AreEqual(OutputShowMode.Failed, options.ShowStderr);
+ }
+
[TestMethod]
public void NonAnsiTerminal_ShowOutputNone_DoesNotShowOutput()
{