Cleanup vstest.TestCase.StandardError/vstest.TestCase.StandardOutput#6870
Merged
Cleanup vstest.TestCase.StandardError/vstest.TestCase.StandardOutput#6870
Conversation
nohwnd
approved these changes
Nov 4, 2025
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.
Related to #3933
The first MSTest version that supported stdout/stderr for MTP in Test Explorer is MSTest 3.6.
This was done in two PRs: #3486 and #3749.
The first PR was a hacky approach that couldn't work for xunit.v3 (see #3740). So a better approach was introduced in the other PR.
When the first testfx PR was done, we followed-up with a corresponding change on Test Explorer side that got in 17.12.
Later on, when the second testfx PR was done, we also followed-up with a change on Test Explorer side that was done also for 17.12.
What we ended up with is two known properties for specifying stdout/stderr, and serializing the information twice. This PR cleans that up.
I also have a similar PR on VSU to clean this up for Test Explorer.