I've integrated SonarCloud with Maven project which is a multi-module project. During the build by Jenkins, I do get project analysed.
However, Code Coverage does not get produced. I have some understanding, that having jacoco-maven-plugin within the parent pom file isn't enough, and I need perhaps build coverage reports in each module, and only then in the parent pom somehow specify the location where to find each and every module's individual reports?
Am I thinking towards right direction?
Basically need some advice and tips what I should start researching. Did some already, but nothing concrete could find.
Liutauras, take a look at the Blackjack repository on GitHub, of which you are also a member I believe. If I recall correctly, code coverage for a multi-module project worked fine there. I used TravisCI instead of Jenkins though.
Sorry for a late reply. Thanks Stephan. Will look into that.
From the quick glance, I see that actual tests sitting just in one module, but not in others. Interesting how that would behave if tests were spread across more modules. But I guess I can easily check this out by pulling the project and adding some dummy tests to other module(s).
I'm going to work more on this today on my side, so will report back if I succeeded or at least to what extent got some success.
Thanks once again.
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad: