Javascript Lcov file path cannot be found error

Hi Team,

We using javascript project in sonarqube version 6.7.7. Coverage is showing 0% after analysis.

Properties used:

sonar.sources=.
sonar.language=js
sonar.exclusions=test/, node_modules/
sonar.dynamicAnalysis=reuseReports
sonar.javascript.jstest.reportsPath=coverage
sonar.javascript.lcov.reportPaths=coverage/lcov-report

Error/warning in logs:
WARN: No coverage information will be saved because LCOV file cannot be found.
INFO: 211/211 source files have been analyzed
WARN: Provided LCOV file path: coverage/lcov-report. Seek file with path: /builds/pearsontechnology/gpt/etext/service/redding-api/coverage/lcov-report
WARN: No coverage information will be saved because all LCOV files cannot be found.
INFO: Sensor SonarJS Coverage [javascript] (done) | time=2ms

Log file attached. Please help us on this,

Job_build_log_4.txt (106.9 KB) Thanks,
Nagaarjun.

Any one please advise on this

Hi,

First, please be aware that this community represents a group of folks like you who have come together to find answers to their questions and sometimes - if they have time and expertise - to offer answers. SonarSourcers participate here, but never as a primary duty. So it’s quite normal to wait multiple days for an answer. :slightly_smiling_face:

Regarding your question: you start by listing your environment. Kudos!

Unfortunately, you’re using a version of SonarQube that is past EOL, and you’re going to have a hard time finding help with it. You need to upgrade at your earliest convenience:

6.7.7 -> 7.9.4 -> 8.4.1 (this step is optional

Once there, please come back to us if the issue persists.

 
Ann

1 Like