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 <system-out> tag which contains the raw captured output from a test is not properly escaped or wrapped in a <![CDATA[ ]]> section. This means the generated XML is invalid and cannot be parsed (eg. by CircleCI).
In my case, I'm running my tests through CircleCI and I have HikariCP logging:
The following errors were encountered parsing test results:
kaocha/results.xml
Unexpected close tag </system-out>; expected </masked>. at [row,col {unknown-source}]: [58,12]
As far as I can see, there's no provided way to escape the content using clojure.xml, but clojure.data.xml has a cdata function to wrap the content inside a <![CDATA[ ... ]]> element, and properly handles ]]> in the content.
The text was updated successfully, but these errors were encountered:
This is shockingly broken behavior from clojure.xml, it really should entity-escape text nodes. I guess people don't really use clojure.xml/emit for real world stuff.
The
<system-out>
tag which contains the raw captured output from a test is not properly escaped or wrapped in a<![CDATA[ ]]>
section. This means the generated XML is invalid and cannot be parsed (eg. by CircleCI).In my case, I'm running my tests through CircleCI and I have HikariCP logging:
CircleCI then complains with the message:
As far as I can see, there's no provided way to escape the content using
clojure.xml
, butclojure.data.xml
has acdata
function to wrap the content inside a<![CDATA[ ... ]]>
element, and properly handles]]>
in the content.The text was updated successfully, but these errors were encountered: