-
Notifications
You must be signed in to change notification settings - Fork 263
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
[Parallel] Console/Debug traces + Log.LogMessage are not associated with the right test case #321
Comments
@cltshivash this really is a bug, it makes investigating test failures in automated runs impossible using logs. I love the parallel feature, but this bug makes it hard to use in production CI/CD scenarios. |
@sea1jxr Console.Writeline is a static instance and will not be thread safe. Using TestContext will ensure that the output for a test only has the relevant logs. Sample below
|
singhsarab
pushed a commit
to singhsarab/testfx
that referenced
this issue
Apr 8, 2019
* Fix vsmanproj to point to right json
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Currently all the logging does not get associated with the right test case because the underlying implementation Console.SetOut or the log message listener are global listeners and not thread specific. There isn't a workaround for this today.
The text was updated successfully, but these errors were encountered: