Skip to content

JUnit test results import fail #927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jgebal opened this issue May 23, 2019 · 0 comments · Fixed by #926
Closed

JUnit test results import fail #927

jgebal opened this issue May 23, 2019 · 0 comments · Fixed by #926
Assignees
Labels
Milestone

Comments

@jgebal
Copy link
Member

jgebal commented May 23, 2019

Describe the bug
ut_junit_reporter can produce invalid output on failing tests with long failure message.

The error that we see in import of test results in Jenkins is:

Failed to read test report file [...snap...]/test_results.xml
org.dom4j.DocumentException: Error on line 6527 of document  : The reference to entity "lt" must end with the ';' delimiter. Nested exception: The reference to entity "lt" must end with the ';' delimiter.

Provide version info
Running on latest utPLSQL v3.1.6

Information about client software
Not relevant

To Reproduce
Have a test that is failing and produces more than 4000 chars of output data and be unlucky enough to get the < string at 4000 chars so the reporter inserts a line break.

Example:

   ... <INSERT_TMSTMP>2018-07-28T01:01:37.092127</INSERT_TMSTMP>&lt
;GROUP_ID/>...

Expected behavior
We should probably make the failure message as CDATA rather than escape the chars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant