Code Coverage is showing 0%

Template for a good false-positive report, formatted with Markdown:

  • versions used (SonarQube, Scanner, language analyzer)
  • minimal code sample to reproduce (with analysis parameter, and potential instructions to compile).

Wrap code around triple quote ``` for proper formatting

After we upgrade SonarQube Enterprise edition from 7.9 to 8.9 LTS , code coverage is showing 0% for Java Script . Earlier it was reflecting , but now it is just showing 0% .

Please help me to resolve this issue.

Hi,

I think the JS coverage report parameter/format may have changed. Take a look at the docs for what’s current.

 
HTH,
Ann

I have added the following line in the DevOps pipeline -

sonar.javascript.lcov.reportPaths = coverage/lcov.info

But still , the result is same. Code coverage is showing zero.

Do we need any plugin ??

Need some help please.

Hi,

You shouldn’t need an additional plugin. Care to share your analysis logs?

 
Ann

The issue is resolved .