Type script project coverage is not shown for PR in sonar UI

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Sonar Version:
    Scanner: latest version of docker CLI
  • how is SonarQube deployed: zip, Docker, Helm
    Zip file in docker container
  • what are you trying to achieve
    The PR analysis should show the coverage for the project.
  • what have you tried so far to achieve this
    Verified through debug logs that coverage file is identified by the sonar scanner-cli and sent for analsis and the Analysis completes successfully.
    But coverage information is not shown for the PR in sonar UI
    The log has a warning
    Node.js version 18 is not recommended, you might experience issues. Please use a recommended version of Node.js [14, 16]
    Tried downgrading to 14, and 16 did not help.

Logs from scanner:

07:39:05.124 DEBUG: Using 'coverage/lcov.info' to resolve LCOV files
07:39:05.124 INFO: Analysing [/workspace/api-composition-pipeline_PR-1169/coverage/lcov.info]
07:39:05.160 INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=36ms
07:39:05.502 INFO: Analysis report generated in /workspace/api-composition-pipeline_PR-1169/.scannerwork/scanner-report

07:39:05.502 DEBUG: Upload report

07:39:05.544 DEBUG: POST 200 https://xxxxxx/api/ce/submit?projectKey=appmarket-api-composition&projectName=appmarket-api-composition&characteristic=pullRequest%3D1169 | time=41ms
07:39:05.546 INFO: Analysis report uploaded in 44ms
07:39:05.547 DEBUG: Report metadata written to /workspace/api-composition-pipeline_PR-1169/.scannerwork/report-task.txt
07:39:05.547 INFO: ANALYSIS SUCCESSFUL, you can find the results at: xxxxx

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

9.4 β†’ 9.9 β†’ 10.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

In addition to running an EOL version, you’re using a plugin for PR analysis that is not supported in this community. You should talk to its maintainers.


Thanks @ganncamp . upgrade resolved the issue.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.