Skip to content

special characters are not escaped in UT_XUNIT_REPORTER #499

@MickeVr

Description

@MickeVr

I am using utPLSQL-sql-cli to let the UT_XUNIT_REPORTER create a file with the results of the utplsql3 unit tests. My Jenkins pipeline project should pick up the generated xml, but is giving an arror after I have added a test with a description that contains an "<" character, e.g.
-- %test(Test a case where A <> B)

Jenkins reports the following error:
Failed to read test report file C:\Jenkins\workspace\A\utPLSQL-sql-cli\unit_test_output.xml org.dom4j.DocumentException: Error on line 1246 of document : The value of attribute "name" associated with an element type "testcase" must not contain the '<' character.

I would expect that I can use special XML characters in the name of a test, and that the reporter will escape them.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions