Skip to content

Write output from tests - #10203

Merged
MichalPavlik merged 1 commit into
mainfrom
vstest-output
Jun 13, 2024
Merged

MichalPavlik merged 1 commit into
mainfrom
vstest-output

Conversation

@nohwnd

@nohwnd nohwnd commented Jun 4, 2024

Copy link
Copy Markdown
Member

Context

Both VSTest and testing frameworks (especially xunit) write additional information to screen. Either by writing to console, or by sending Test messages.

Until now users cannot see the messages on screen which degrades the experience to them.

This includes not being able to see discovered tests when --list-tests is used, or not being able to see output written by tests.

Changes Made

Adds a test specific message type that we can use to write an immediate message. This is probably not the best fit, but it is the most unified with what is existing on TL right now.

Testing

No new tests, I am leaning on what is already there.

Notes

This is how it looks like when someone has few tests written in MSTest and Xunit.

msbuild_output

@nohwnd

nohwnd commented Jun 6, 2024

Copy link
Copy Markdown
Member Author

@MichalPavlik can we merge this or I need to make some changes?

@AR-May
AR-May requested review from AR-May and MichalPavlik June 11, 2024 13:41
@MichalPavlik
MichalPavlik merged commit 63f447b into main Jun 13, 2024
@MichalPavlik
MichalPavlik deleted the vstest-output branch June 13, 2024 10:40
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.

3 participants