Uh oh!
There was an error while loading. Please reload this page.
Revert "Avoid printing stdout/stderr properties in console (#7600)" and add --show-stdout/--show-stderr options - #7637
Conversation
This reverts commit 2142eb2.
There was a problem hiding this comment.
Pull request overview
Reverts a prior change that suppressed printing captured stdout/stderr in terminal reporting, restoring “Standard output” / “Error output” sections in detailed test output across ANSI and non-ANSI terminals.
Changes:
- Restore propagation and rendering of
StandardOutputProperty/StandardErrorPropertyinTerminalOutputDevice→TerminalTestReporter. - Update terminal reporter unit tests to validate the restored output formatting (ANSI/simple ANSI/non-ANSI, including progress-frame output).
- Add an MSTest acceptance integration test verifying detailed output includes the expected standard/error output sections, and add the required localized resource strings.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/UnitTests/Microsoft.Testing.Platform.UnitTests/OutputDevice/Terminal/TerminalTestReporterTests.cs | Updates expected terminal output to include standard/error output blocks for multiple terminal modes. |
| test/IntegrationTests/MSTest.Acceptance.IntegrationTests/OutputTests.cs | Adds acceptance coverage ensuring --output detailed includes the standard/error output sections. |
| src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.*.xlf | Adds translations for the new StandardOutput / StandardError resource entries across all supported locales in this folder. |
| src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx | Adds StandardOutput / StandardError resource strings used by terminal formatting. |
| src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.cs | Restores reading standard output/error properties from test nodes and passes them into terminal reporting. |
| src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs | Restores rendering of standard output/error output blocks in test-completed output. |
Youssef Fahmy (Youssef1313)
commented
Mar 31, 2026
Copilot Implement |
Agent-Logs-Url: https://github.com/microsoft/testfx/sessions/9469d596-497a-4fe7-825d-c66ec503035e Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Implemented in commit 467e567. Added
Files changed:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Youssef Fahmy (Youssef1313)
commented
Mar 31, 2026
Copilot |
Amaury Levé (Evangelink)
left a comment
There was a problem hiding this comment.
We should have some acceptance tests for the new options and their values.
…ions Agent-Logs-Url: https://github.com/microsoft/testfx/sessions/90d2502d-bdb5-4e11-af6a-2e8717c3f7de Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Fixed in commit 7cc2308. Updated the expected
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Agent-Logs-Url: https://github.com/microsoft/testfx/sessions/4b78683d-3a15-4bd1-8452-d3e7c0b60a68 Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Added acceptance tests in commit c2f8fdd in
|
Youssef Fahmy (Youssef1313)
commented
Mar 31, 2026
Copilot |
…lphabetical ordering of extension options Agent-Logs-Url: https://github.com/microsoft/testfx/sessions/7720e902-46f9-4abb-8ab4-4667485117f9 Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Fixed in commit cced0c7. The expected |
Amaury Levé (Evangelink)
left a comment
There was a problem hiding this comment.
Nice approach — giving users control via --show-stdout/--show-stderr is much better than the blanket suppression from #7600.
The implementation is clean and follows existing patterns well. A few items to address:
- Naming consistency —
errorOutputparameter should bestandardErrorto match the rest of the chain - Unreachable default arms — the
_ =>cases in theOutputShowModeswitches should useApplicationStateGuard.Unreachable()per codebase convention - Test coverage — missing acceptance tests for explicit
all, default behavior, and invalid argument validation - Default value — discussed offline, keeping
Allfor backward compatibility now with plan to switch toFailedin the next major
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…eachable(), add more acceptance tests Agent-Logs-Url: https://github.com/microsoft/testfx/sessions/8d276482-3c57-4566-a196-9ed5bdb23fb2 Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Fixes#7612