Persist skipped test visibility for solution runs - #11010
Persist skipped test visibility for solution runs#11010Amaury Levé (Evangelink) wants to merge 1 commit into
Conversation
Store the repository's failed-only result visibility as a passive test-host default so solution and module test runs honor it. Teach the terminal reporter to consume passive defaults while preserving explicit command-line precedence. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The reviewed changes have no unresolved approval-blocking issues.
Review tier: Balanced
Findings: None
What changed in this PR
Persists failed-only test-result visibility for solution and module test-host runs while preserving explicit command-line overrides.
Changes:
- Adds a passive
show-test-results=faileddefault. - Applies passive defaults with explicit CLI precedence.
- Adds coverage for default resolution and overrides.
| File | Description |
|---|---|
test/UnitTests/Microsoft.Testing.Platform.UnitTests/OutputDevice/Terminal/TerminalTestReporterCommandLineOptionsProviderTests.cs |
Tests passive-default resolution and explicit overrides. |
test/UnitTests/Microsoft.Testing.Platform.UnitTests/Helpers/TestCommandLineOptions.cs |
Supports passive defaults in tests. |
test/Directory.Build.targets |
Persists the failed-only test-host default. |
src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.Initialization.cs |
Documents updated visibility precedence. |
src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporterCommandLineOptionsProvider.cs |
Resolves explicit or passive-default visibility. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
🧵 Parallel-safety audit — PR #11010Parallelization — assembly audited (owns the two changed test files):
Findings: A (global-state) Reviewed the PR's diff directly (the workflow's pre-extraction step outputs were unavailable in this run, so files/regions were resolved from the PR file list instead):
Nothing in this PR mutates process-global state, touches shared filesystem paths, or changes Advisory only — heuristic, non-blocking. Re-run with
|
There was a problem hiding this comment.
Note
🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.
✅ 22/22 dimensions clean — no findings.
|
/backport to rel/4.4 |
|
Started backporting to rel/4.4: https://github.com/microsoft/testfx/actions/runs/33773338646 |
Summary
Repository solution and module test runs launch built test hosts directly, so the existing
TestingPlatformCommandLineArgumentssetting did not reach them and skipped-test details remained visible.show-test-results=failedin each test host as a passive defaultValidation
Microsoft.Testing.Platform.UnitTests: 2515 passedshow-test-results: failed--show-test-results allrestores themFixes #11009