You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TrxReport rewrites every supplementary Unicode character (for example emoji or other non-BMP characters) into two literal surrogate escape sequences such as \uD83D\uDE00, even though XML 1.0 allows valid [#x10000-#x10FFFF] characters.
The sanitizer is applied to report content such as stdout/stderr and exception text in src/Platform/Microsoft.Testing.Extensions.TrxReport/TrxReportEngine.Results.cs:116-143.
Why this is a real issue
A test output like 😀, or a display name / exception message containing a non-BMP character, is valid XML content but will be rewritten into surrogate-literal text. That is a lossy transformation: consumers no longer see the original character, and the TRX does not round-trip the data that the test emitted.
Suggested resolution
Preserve valid surrogate pairs / supplementary characters and only escape truly invalid XML code points. In practice that means treating well-formed surrogate pairs as valid content instead of replacing each UTF-16 code unit independently.
Activity