-
Notifications
You must be signed in to change notification settings - Fork 326
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
VSTest is printing using Console.WriteLine instead of using the logger #2224
Comments
It also looks like this task creates a process but doesn't redirect output, so that will further be lost logging. vstest/src/Microsoft.TestPlatform.Build/Tasks/VSTestForwardingApp.cs Lines 30 to 51 in e6c198c
|
cc @nohwnd |
@ViktorHofer did you see this issue happen somewher or why are you tagging me just now?:) |
@akoeplinger a colleague of mine is hitting this issue in mono/linker. Thought you might be interested in this issue :) |
Is it another manifestation of #680? |
@mayankbansal018 @Evangelink do you have any ETA when this might be addressed? this is currently making vstests kinda useless in some scenarios for dotnet/iot because tests fail but we get not info what failed and issue is CI specific in our case. |
FYI #2702 addresses the issue, but has been waiting for ages now. I'm rebasing from time to time... |
addressed in the msbuild logger work |
Description
VSTest should be using logger instead of Console.WriteLine. I.e.:
vstest/src/Microsoft.TestPlatform.Build/Tasks/VSTestTask.cs
Line 132 in e6c198c
vstest/src/Microsoft.TestPlatform.Build/Tasks/VSTestTask.cs
Line 301 in e6c198c
This is causing that in some cases output gets lost.
Steps to reproduce
Replacing will not be needed once linked PR is merged
If any property is passed to MSBuild task then output gets printed (because of luck it gets run on master node where Console.WriteLine works correctly)
Expected behavior
Test output is displayed
Actual behavior
Build fails but no errors get printed
The text was updated successfully, but these errors were encountered: