0.0% coverage showing on My JavaScript project

Coverage always showing 0.0% on my java script project and also new lines to cover drastically increased to 402 to 680k.
Scanner version: SonarScanner 4.8.0.2856

Parameters Used:
-Dsonar.tests=/myrepo -Dsonar.sources=/myrepo/packages/newproj -Dsonar.javascript.lcov.reportPaths=/myrepo/coverage/lcov.info -Dsonar.scanner.metadataFilePath=/myrepo/packages/newproj/report-task.txt -Dsonar.scm.disabled=true

Ref screenshots:

Hi,

Can you share your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann

After changing parameters in sonar-scanner cli it is showing analysis
-Dsonar.projectBaseDir=/myrepo
-Dsonar.sources=/myrepo/packages/newproj

1 Like

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