Code Coverage is not displaying on Sonarqube dashboard?

I have wriitten this on Jenkins in Sonarqube Scanner Analysis Properties

sonar-scanner
sonar.projectKey=CICD
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.sources=
sonar.host.url=http://144.126.147.143:9000
sonar.login=
sonar.javascript.lcov.reportPaths=./coverage/lcov.info

What do the coverage logs say?

INFO: No LCOV files were found using ./coverage/lcov.info
WARN: No coverage information will be saved because all LCOV files cannot be found.

Are you producing the LCOV report in your Jenkins pipeline to be later consumed by the scanner?

No there isn’t any report

Well… I think we can put 2 and 2 together. No report, no coverage :smiley:

I suggest taking a look at the documentation on Test Coverage.

Scanner logs.txt (12.6 KB)

Hey there.

This isn’t a ServiceDesk. I’m not sure what you expect me to do with these logs. Did you read the documentation on test coverage, and what have you tried?