On Tuesday, October 9, 2018 at 4:51:19 PM UTC+2, Jithin John wrote: > > > > On Thursday, December 7, 2017 at 6:57:24 PM UTC+5:30, Evgeny Mandrikov > wrote: >> >> >> >> On Thursday, December 7, 2017 at 12:53:04 PM UTC+1, [email protected] >> wrote: >>> >>> So basically as per my understanding merge task will just merge all the >>> jacoco.exec from modules into one, but these jacoco.exec doesn't have the >>> cross module code coverage. >>> >> Please correct me if I'm wrong >>> >> >> You're wrong - exec file contains information about classes no matter >> from which module they come. >> "report-aggregate" doesn't affect exec files in any way and uses exactly >> the same ones. >> >> > If I am right, jacoco.exec will have the coverage information about the > unit module and the depending module. >
Yes - this is exactly what was said above. > But I am not able to see the depending module coverage in Sonar. What > could have I done wrong ? My sonar version is 5.6.7 > As you can see in JaCoCo documentation on page https://www.jacoco.org/jacoco/trunk/doc/integrations.html : SonarQube integration is third-party, not developed by JaCoCo team. So please ask respective vendor - SonarSource: https://community.sonarsource.com/ Before creation of a new thread in their community forum, first of all I highly advise you to read existing answer https://community.sonarsource.com/t/code-coverage-discrepency-on-maven-multi-module-project-eclipse-eclemma-vs-sonarqube/610/2 which IMO pretty well explains case of multi-module Maven projects. Using google you also can find plenty of other articles about this. And secondly don't expect that anyone will be able to blindly guess an answer on question "What could have I done wrong ?" without any additional details. Regards, Evgeny -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/1b93148f-e071-4a42-9cdd-d9c2d256f7d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
