Code coverage is showing as 0.0%

Hi,
Please find the below screenshot of SonarQube report.

And this is the code used in Jenkins integration.

# Required metadata (Project name as to be appearing in the sonar report)
sonar.projectKey=ap134603_PswDcplanPortfolioApp
sonar.projectName=ap134603_PswDcplanPortfolioApp
sonar.projectVersion=2.0

# Comma-separated paths to directories with sources (stash source path)

sonar.sources=pr000147-plan-sponsor-webstation/Selenium/src/test/java/ap134603_PswDcplanPortfolioApp
sonar.java.binaries=pr000147-plan-sponsor-webstation/Selenium/src/test/java/ap134603_PswDcplanPortfolioApp
# Language
sonar.language=java
# Encoding of the source files
sonar.sourceEncoding=UTF-8 

Please advice me on this.

Thanks in Advance,
Nandha

Hi Nandha,

Welcome to the community!

You’re not passing your coverage report in to analysis. You’ll need to add another analysis parameter for that.

Beyond that, your sonar.sources and sonar.java.binaries settings seem super-narrow, plus they’re pointed at tests rather than source files(?). Maybe this is what you want, but it jumped out at me.

One more thing, sonar.language was deprecated years ago and removed in… 7.7 IIRC. You can simply drop it from your parameters; it’s not doing anything.

 
HTH,
Ann