Code coverage showing 0% in sonarqube GUI for angular

Hello Team,

Code coverage is showing 0% for the angular project and below are my sonar-project.properties

sonar.projectKey=##########

sonar.projectName=#####-web-ui

sonar.projectVersion=1.0

sonar.sourceEncoding=UTF-8

sonar.host.url=${env.SONAR_HOST}

sonar.sources=src

sonar.typescript.lcov.reportPath=coverage/####/lcov.info

sonar.tests=src

sonar.test.inclusions=**/*.spec.ts

sonar.exclusions=sonar-scanner-cli-3.0.3.778-linux.zip,coverage/,sonar-scanner-3.0.3.778-linux/,node_modules/**

Scanner is working fine but code coverage is not showing in the GUI

Can anyone help me to fix the issue

Hey there.

As requested in the template post, what version of SonarQube are you using (you should be able to see it in the footer of your SonarQube instance)

Hello Colin,

Above issue is fixed and now we are facing another issue.

How to resolve the failed status in Sonarqube GUI

Actually, the code coverage more than 80% but still the status is failed in sonarqube GUI

Sonarqube version 9.2.4

Please help me to resolve the issue

Hey there.

After upgrading to SonarQube v9.9 LTS (the currently supported version of SonarQube), feel free to raise a new thread about this issue.

HI Team,

Using below github actions workflow code coverage showing 0% can someone please help me on this?

- name: SonarQube Quality Gate Check
    uses: sonarsource/sonarqube-quality-gate-action@master
    with:
      scanMetadataReportFile: ${{ inputs.working_dir }}/.scannerwork/report-task.txt
      pollingTimeoutSec: 600
    env:
      SONAR_TOKEN: ${{ 
        inputs.working_dir == './frontend' && secrets.SONAR_TOKEN_FRONTEND

Hey @awsaccount

Instead of reviving a year-and-a-half old thread, please create a new thread with all the issues requested in the template post.

Better yet if you go searching for the logs:

I will close this thread.