Include verbose output in RunFileTests#53884
Open
jjonescz wants to merge 8 commits intodotnet:mainfrom
Open
Conversation
This was referenced Apr 15, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates dotnet run file-mode test execution to emit verbose diagnostics (without polluting stdout assertions) and adjusts CLI verbose plumbing to support sending verbose output to stderr.
Changes:
- Enable verbose logging for
RunFileTestBase’sdotnet runinvocations and route verbose output to stderr. - Add a new logging context env var to control whether verbose output goes to stderr.
- Route an early “Telemetry is …” verbose message through
Reporter.Verboseinstead ofConsole.WriteLine.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| test/dotnet.Tests/CommandTests/Run/RunFileTestBase.cs | Sets verbose-related env vars for dotnet run in file-mode tests. |
| src/Cli/Microsoft.DotNet.Cli.Utils/CommandLoggingContext.cs | Introduces DOTNET_CLI_CONTEXT_VERBOSE_TO_STDERR and exposes IsVerboseToStdErr. |
| src/Cli/Microsoft.DotNet.Cli.Utils/Reporter.cs | Routes Reporter.Verbose to stderr when configured. |
| src/Cli/dotnet/Program.cs | Emits telemetry state via Reporter.Verbose when verbosity is enabled. |
MichaelSimons
approved these changes
Apr 16, 2026
This was referenced Apr 16, 2026
MiYanni
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Should help with investigating these flaky failures: #53869 (but also other failures in these tests the future).