Skip to content

Conversation

@dsplaisted
Copy link
Member

This PR removes all direct uses of the CLI Utils Command class, and instead routes them through the SDK's TestCommand. This will log the start info, STDOUT, and STDERR.

This will, for example, make it a lot easier to see what the problem is from the test logs when a test fails because the right shared framework isn't installed. The error information in that case goes to STDERR, which a lot of the tests which used Command.Create weren't capturing.

FYI @dotnet/dotnet-cli, we should continue to follow the new pattern of using DotnetCommand and RunExeCommand instead of Command.Create in future tests.

@dsplaisted dsplaisted requested a review from a team May 30, 2019 21:59
@dsplaisted dsplaisted force-pushed the better-test-logging branch from ec25e09 to 66882d3 Compare May 30, 2019 22:45
Copy link

@wli3 wli3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just considering it uses CLI's utli, We should move away from it. It is no longer producing

This will include both STDOUT and STDERR in the log, as well as launched process path and args
@dsplaisted dsplaisted force-pushed the better-test-logging branch from 66882d3 to 81b6076 Compare May 31, 2019 00:46
@dsplaisted dsplaisted merged commit cda3914 into dotnet:master May 31, 2019
dsplaisted pushed a commit to dsplaisted/sdk that referenced this pull request Feb 19, 2020
Error ported from cli, sent pr to cli release branch to fix
@tmat tmat mentioned this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants