Sonarcloud Is marking wrong line as not covered by tested downgrading my test coverage %

It is marking lines like the following as not covered by tests:

public static final String PENDO_APP_KEY = “X-Pendo-App-Key”;
private static void addAppKeyHeader(Request.Builder request) {
class RandomStringGenerator {

Why is asking me to cover class declaration, variable declaration, and method declaration both in java and kotlin?

Hey there.

SonarCloud doesn’t produce coverage reports, it only reads them. You should consult the coverage report being generated (I presume by JaCoCo) and reach out to the maintainers if you believe it’s falsely marking lines as being able to be covered by tests.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.