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
The escapeXML function in the junit reporter does not remove characters that are illegal in an XML document. This can cause issues when writing lines from stdout and stderr to the output xml file.
There is an MIT licensed gist that correctly scrubs illegal characters. That, or something similar, should be added to the junit reporter.
Describe the bug
The
escapeXML
function in the junit reporter does not remove characters that are illegal in an XML document. This can cause issues when writing lines fromstdout
andstderr
to the output xml file.There is an MIT licensed gist that correctly scrubs illegal characters. That, or something similar, should be added to the junit reporter.
I could write up an MR if you'd like.
Reproduction
Reproduction StackBlitz.
Let the tests run and open
test_result/junit.xml
. The file contains disallowed characters, specifically in the<system-err>
tag.You can use any XML validator to check, such as the one from w3schools.
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: