Reduce console output when running tests and update more tests to use ITestOutputHelper #5901
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.
Description
A couple of .NET test runs execute code paths that end up calling
Console.WriteLine()
which I find confusing when looking at a test run's output:The "Error processing request" is coming from
SelfSignedCertificateMockServer
so I updated it to useITestOutputHelper
. I also updated more tests that weren't logging command output toITestOutputHelper
that @donnie-msft had reported.Another change is to
ListPackageConsoleRenderer
to allow tests to capture its output instead of it writing toConsole.Out
.PR Checklist
PR has a meaningful title
PR has a linked issue. N/A
Described changes
Tests
Documentation