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
And also should this be done on the platform level, or we leave it up to the frameworks to handle it?
And last consideration, special chars (like 0x00) break XML, so we probably should always replace offending characters in TRX.
For discussion:
because this has potentially big impact on perf (since we basically need to touch all strings, and probably want to escape then earlier rather than later to do it as few times as possible. What is the best way to replace the chars with least overhead?
And because we need to decide if this should be done on platform level.
And also should this be done on the platform level, or we leave it up to the frameworks to handle it?
For this specific scenario I reckon so - Because MTP is the part spitting out that line, so makes sense for you to handle the formatting of it too imo. Also means it's consistent across frameworks.
Activity
nohwnd commentedon Feb 26, 2025
We need to replace them with their control pictures ( https://github.com/pester/Pester/pull/2615/files#diff-d46236d014c39e3384c78b140721e505d4cba4bea2ac0a65d3e4471e541ae144R66 ), like we do in few places in tests, especially the ESC character, which has the potential to break all our output. We also need to think about which special chars to replace where, replacing newline in test name is probably good idea, but not a good idea to do that in assertion output.
And also should this be done on the platform level, or we leave it up to the frameworks to handle it?
And last consideration, special chars (like 0x00) break XML, so we probably should always replace offending characters in TRX.
For discussion:
because this has potentially big impact on perf (since we basically need to touch all strings, and probably want to escape then earlier rather than later to do it as few times as possible. What is the best way to replace the chars with least overhead?
And because we need to decide if this should be done on platform level.
thomhurst commentedon Feb 26, 2025
For this specific scenario I reckon so - Because MTP is the part spitting out that line, so makes sense for you to handle the formatting of it too imo. Also means it's consistent across frameworks.