Repository navigation
Closed
Copy link
Milestone
Description
Summary
Replace the negative --no-progress switch on the Microsoft.Testing.Platform terminal reporter with a positive --progress {auto|on|off} option, mirroring the existing --ansi {auto|on|off} flag. Keep --no-progress working as a deprecated alias for one major version.
Motivation
--ansi {auto|on|off}already follows this pattern in the same provider — having--no-progressnext to it breaks the user's mental model.- Positive form is the modern convention (
git --color=autoetc.). autobecomes an explicit, documentable default rather than the current implicitalways on unless --no-progress.- Unblocks Add CI-friendly textual progress heartbeat to MTP terminal reporter (raw log progress signal) #9125 (raw-log progress heartbeat) by giving the heartbeat work a clean knob to plug into instead of inventing a new flag.
Proposed behavior
New option: --progress {auto|on|off} on TerminalTestReporterCommandLineOptionsProvider:
auto(default): current behaviour — show progress unless we are a test-host controller,--list-tests, or server mode.on: force progress on (still subject to--ansicapability —--ansi offfalls back to the no-cursor renderer once that exists; see Add CI-friendly textual progress heartbeat to MTP terminal reporter (raw log progress signal) #9125).off: equivalent to today's--no-progress.
--no-progress keeps working but is marked obsolete and routed to --progress off internally. When provided, emit a single deprecation warning to stderr (once per process):
warning: --no-progress is deprecated; use --progress off instead.
Remove --no-progress in the next major.
Implementation notes
Touchpoints:
src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporterCommandLineOptionsProvider.cs— add option, mark obsolete on the legacy one.src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.csaround line 195 — read--progressfirst, fall back to--no-progresswith the warning.- Resource strings (
.resx) + rundotnet msbuild src/Platform/Microsoft.Testing.Platform/Microsoft.Testing.Platform.csproj /t:UpdateXlfper AGENTS.md. - Update the four
--help/--infoacceptance test expectations (alphabetically sorted, indentation preserved):test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoTests.cstest/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/HelpInfoAllExtensionsTests.cstest/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/MSBuild.KnownExtensionRegistration.cstest/IntegrationTests/MSTest.Acceptance.IntegrationTests/HelpInfoTests.cs
- Follow-up: mirror the change in the dotnet/sdk forked terminal reporter under
src/Cli/dotnet/Commands/Test/MTP/Terminal/sodotnet testusers see the same flag (avoid landing the deprecation warning in testfx before the SDK has the new flag).
Out of scope (deliberately)
- The silence-driven heartbeat renderer itself for
SimpleAnsi/NoAnsimodes — tracked by Add CI-friendly textual progress heartbeat to MTP terminal reporter (raw log progress signal) #9125. - Per-CI extensions (collapsible groups, native annotations, GitHub Actions
GITHUB_STEP_SUMMARY) — will go intoMicrosoft.Testing.Extensions.AzureDevOpsReportand a newMicrosoft.Testing.Extensions.GitHubActionsReportpackage. - Richer values like
--progress grouped. Per the design discussion on Add CI-friendly textual progress heartbeat to MTP terminal reporter (raw log progress signal) #9125, CI-specific behaviour belongs in per-CI extension packages, not in core.
Related
- Add CI-friendly textual progress heartbeat to MTP terminal reporter (raw log progress signal) #9125 — Add CI-friendly textual progress heartbeat to MTP terminal reporter (this issue is a prerequisite).
- Test duration is added instead of being updated (every second) #6753 — historical context for why fixed-cadence heartbeats were removed.
- Existing
--ansi {auto|on|off}flag in the same provider — pattern to mirror.
Metadata
Metadata
Assignees
Labels
No labels
Activity