our Electrode webapp has onboarded to sonar & i can see few vitals (code smells, bugs, duplications) but i every time see Coverage as “0”, though our app coverage shows 90% around in our local.
actual sonar setup configuration & jest configuration seems perfect in our project, but coverage still shows “0” everytime on sonar dashboard.
our Repo - https://gecgithub01.walmart.com/SSAESF/SF-Reports-UI-NG
As per my debugging, we did every possible thing to overcome issue, but issue seems this from logs
“1756348074364 ----- sonarProjKey -----
1756348074364 com.walmart:sf-reports-ui-ng
1756348074364 ----- sonarOpts -----
1756348074365 -Dsonar.sources=src -Dsonar.projectVersion=0.0.1-e5af80739 -Dsonar.tests=src/\_*tests*\_ -Dsonar.exclusions=\***/**.html,config/\***,archetype/,node_modules/,dist/,coverage/,src/common/auth/,src/common/data/,src/common/utils/,src/store/,src/common/load-component.js,src//**.test.ts,src/\***/**.test.tsx,src/\***/**.test.js,src/\***/**.test.jsx -Dsonar.javascript.file.suffixes=.js,.jsx -Dsonar.typescript.file.suffixes=.ts,.tsx -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
1756348074365 ----- running sonar-scanner -----
1756348074562 INFO: Scanner configuration file: /root/sonar_home/conf/sonar-scanner.properties
1756348074562 INFO: Project root configuration file: NONE
1756348074598 INFO: SonarScanner 5.0.1.3006”
everytime, I am seeing root config [file:NONE](file:///NONE) though we are having sonar config file & coverage in root directory.