Code coverage (Angular) is not shown on SonarCloud

I want to increase percent of code coverage on SonarCloud.

  • When i generate Karma code coverage then code coverage report is shown as below:
  • After i run “npm run sonar” then check code coverage on SonarCloud then no percent for coverage. Only “component.spec.ts” format is displayed on Code tab

    No any field is displayed bottom of project name:

I don’t know why does it is different between Karmar report and SonarCloud?
Pls support help me.

Could you share with us your current configuration ? Are you using SonarCloud Autoscan or a different CI ?
It seems like most of your files are not analyzed…