Open nohwnd opened 8 months ago
I don't think it's a bug...we don't do nothing and we use the default of the platform.
I think that the adapter should take this responsibility as platform we don't own or know nothing about "what" the plugged testing platform does...it could not send messages to the output device at all.
Another idea can be if we think that's a good "default" for our default console "set by default" utf-8 and provide some "command line args" to change it to something else like '--console-output-encoding xxx'
Waiting for @Evangelink thought
Another idea can be if we think that's a good "default" for our default console "set by default" utf-8 and provide some "command line args" to change it to something else like '--console-output-encoding xxx'
Haven't put much thoughts but this seems the best. A "good" default and an easy way to change it.
I don't know how busy is the sprint but if there is some room for it, I would try to work on it for 3.4 (not sure if you already did the feature complete preview release for 3.3).
I don't think this can be purely testing framework concern. The encoding needs to align with msbuild integration for dotnet test, if we want to transport the standard output data correctly, otherwise we are losing encoding and information. This is not so painful for english speaking countries, where utf-8 is mostly used in form of emojis that are rarely used in test names and output, but without this we will be breaking chinese and other characters.
The encoding needs to align with msbuild integration for dotnet test, if we want to transport the standard output data correctly, otherwise we are losing encoding and information.
Yep, this needs to be followed also for "custom" possible output display in case.
The encoding needs to align with msbuild integration for dotnet test
Seems like having an option to change the encoding and having dotnet test
logic calling this option based on current msbuild setting is the logical split. Platform allows to change console encoding and dotnet test
that is aware of MSBuild sets the value.
Describe the bug
Frameworks or users might use utf8 characters in their output messages. Set console encoding to utf8 (as we do in vstest.console, and as xunit.console does). https://github.com/microsoft/vstest/issues/4605
Optionally put this under environment variable feature flag.
Steps To Reproduce
mstest108.zip
Expected behavior
I can see the smileys.
Actual behavior
I see ??
Additional context