Skip to content
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

JUnit test results import fail #927

Closed
jgebal opened this issue May 23, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@jgebal
Copy link
Member

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.

@jgebal jgebal added the bug label May 23, 2019

@jgebal jgebal added this to the v3.1.7 milestone May 23, 2019

@jgebal jgebal self-assigned this May 23, 2019

@jgebal jgebal closed this in #926 Jun 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.