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.