Missing Code Coverage for Java / Gradle project

Hello.

Code Coverage for my Java / Gradle project hosted on Github and linked to SonarCloud doesnt calculate.

Measures
 0 Security Hotspots
 0.0% Coverage on New Code
 0.0% Duplication on New Code

(Output fromt the sonarcloud bot comment on Github PR :point_up_2:)

The project page on SonarCloud says:

Coverage
A few extra steps are needed for SonarCloud to analyze your code coverage.
Set up coverage analysis

Although I have all setup according to the linked docs.


plugins {
    id "jacoco"
    id "org.sonarqube" version "3.5.0.2730”
}
 
jacocoTestReport {
    reports {
        xml.required = true
    }
}

I contacted through help form, but I’ve been redirected to ask here, on community forum.


How can I debug it locally, to check where the problem lies?
If that’s not possible how can I get a technical support instead, so someone on the sonarcloud looks into my project and checks if there’s anything wrong with it instead?

Hi,

Welcome to the community!

Can you post your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann

I am facing the same problem where I am not able to see the code coverage. I can see the jacoco report being generated and the properties file referring the right file.
insights-be.txt (2.0 KB)

Hi @KRAJMA1_alcon,

Welcome to the community!

While your topic is related, you’ve resurrected a thread that’s over 3 months old. Per the FAQ, please don’t do that. Please create a new thread with all your details.

 
Thx,
Ann

1 Like