Hi Ann,
thank you for your fast response. It's not so complicated, I have the following structure:
my-project
-- src
---- main
------ java // here are my java files
---- test
------ java // here are my test files
-- target
---- jacoco
------ tests.exec
---- htmlReport // here is my jacoco html report
If I run the gradle sonarqube task using the sonarqube gradle plugin then everything gets pushed. I see the coverage updates in sonar. It's just like they do not match. Functions that are tested indirectly are not test covered in sonarqube.
For example:
MyApplicationServicesTest contains tests for MyApplicationService. Jacoco and sonarqube contains line coverage for MyApplicationService. The implementation MyApplicationService also has some dependencies like MyEntity. Within an executed method the method MyEntity.myMethod gets called. The indirect tested method (integration test) is covered in the jacoco html report but not in sonar.
Is this intentional? Maybe it's because I am using an old jacoco plugin? Maybe there is something else wrong?
Greetings
Sebastian