I am trying to analyze a javascript project and I used Jenkins to trigger the sonar scanner.
My sonar-project.properties file looks like this:
sonar.host.url=*********************
sonar.organization=*********************
sonar.login=*********************
sonar.projectKey=*********************
sonar.projectName=*********************
sonar.sources=src
sonar.tests=src/controllers/test,src/models/test
sonar.exclusions=src/controllers/test/**,src/models/test/
sonar.coverage.exclusions=**/node_modules/**,test/
sonar.javascript.lcov.reportPaths=lcov.info
sonar.sourceEncoding=UTF-8
When the scanner runs, I can see in the logs that it tried to analyze the lcov.info file, here is the info from the logs
INFO: Sensor JavaScript analysis [javascript] (done) | time=3894ms
INFO: Sensor JavaScript/TypeScript Coverage [javascript]
INFO: Analysing [/home/jenkins/agent/workspace/changelogs/lcov.info]
INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=19ms
The scanning is completed successfully although the sonarcloud dashboard will show “No Coverage Information”.