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=truesonar.javascript.lcov.reportPaths=coverage/lcov.info
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!