Lcov coverage results not updated in the SonarQube dashboard

361 views
Skip to first unread message

nvk...@gmail.com

unread,
Mar 28, 2018, 6:31:29 PM3/28/18
to SonarQube
Hi,

We're currently on the 6.7 version of SQ. I am scanning a JS project along with coverage report(LCOV). The scan completes successfully but there are no coverage stats reported in the SQ server. Below is my sonar-project.properties file.

# must be unique in a given SonarQube instance
sonar.projectKey=xxxx
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=XXXXXX
sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set.
sonar.sources=.
sonar.java.binaries=.
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
#sonar.coverage.reportPath=coverage.txt
sonar.javascript.file.suffixes=.js,.jsx
sonar.dynamicAnalysis=reuseReports
sonar.javascript.lcov.reportPaths=/Users/xxx/Documents/coverage-test/xxxxx/coverage/lcov.info
sonar.login=xxxxxxx
sonar.password=xxxxxxxx

The scans results are below:

1886/1886 source files have been analyzed
INFO: Sensor SonarJS [javascript] (done) | time=90565ms
INFO: Sensor SonarJS Coverage [javascript]
INFO: Analysing [/Users/xxxxxxx/Documents/coverage-test/xxxxx/coverage/lcov.info]
INFO: Sensor SonarJS Coverage [javascript] (done) | time=697ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=717ms
INFO: Sensor CPD Block Indexer
INFO: Sensor CPD Block Indexer (done) | time=1ms
INFO: SCM provider for this project is: git
INFO: 4 files to be analyzed
INFO: 0/4 files analyzed
WARN: Missing blame information for the following files:
WARN:   * coverage/lcov-report/prettify.js
WARN:   * coverage/lcov-report/sorter.js
WARN:   * coverage/prettify.js
WARN:   * coverage/sorter.js
WARN: This may lead to missing/broken features in SonarQube
INFO: 155 files had no CPD blocks
INFO: Calculating CPD for 1729 files
INFO: CPD calculation finished
INFO: Analysis report generated in 5988ms, dir size=19 MB
INFO: Analysis reports compressed in 8150ms, zip size=8 MB
INFO: Analysis report uploaded in 2375ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/xxxx
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWJtVdo9VzA35BBbHc7C
INFO: Task total time: 2:08.145 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:09.547s
INFO: Final Memory: 74M/1488M
INFO: ------------------------------------------------------------------------

Reply all
Reply to author
Forward
Message has been deleted
0 new messages