Upgraded Sonarqube Server from 9.9.4 to 2025.1.1, code coverage dropped from 80% to 30%

Must-share information (formatted with Markdown):

  • SonarQube Server - 2025.1.1

  • Sonarscanner cli is 6.2.1

  • how is SonarQube deployed: zip

  • Post upgrade the code coverage for react application using node with Javascript and Typescript, jest for unit tests. It had dropped the code coverage from 80% to 30%. no code changes made to the application.

  • Jest unit tests passed as below,

  • Test Suites: 105 passed, 105 total
    Tests: 914 passed, 914 total
    Snapshots: 128 passed, 128 total
    Time: 179.616s
    Ran all test suites.

  • updated the sonar-project.properties to have only JS for reportPath.

  • sonar.projectKey = sample_react-rd
    sonar.sources=src
    sonar.verbose=true

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

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

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.

 
Thx,
Ann