Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write output from tests #10203

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Write output from tests #10203

merged 1 commit into from
Jun 13, 2024

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Jun 4, 2024

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
Copy link
Member Author

nohwnd commented Jun 6, 2024

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

@MichalPavlik MichalPavlik merged commit 63f447b into main Jun 13, 2024
10 checks passed
@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