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

Sonar test results fail on import. #925

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

Comments

Projects
None yet
1 participant
@jgebal
Copy link
Member

commented May 22, 2019

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

The error that we see in sonar-scanner is:

Look at the SonarQube documentation to know the expected XML format. [com.ctc.wstx.exc.WstxLazyException] Unexpected character (CTRL-CHAR, code 10); expected a semi-colon after the reference for entity 'lt'
[ERROR] at [row,col {unknown-source}]: [4670,4001]

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 this to the v3.1.7 milestone May 22, 2019

@jgebal jgebal added the bug label 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.