Hi all.
When I execute the pipeline to deploy my software to DEV and the code scanning step finishes, the porcentage of code coverage is much lower is the pipeline than in my local IDE.
Can anyone explain me where is the difference or what am i missing?
I have attached two snapshots, one from pipeline and another from my IDE. Thanks in advance.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @katmandu25
Could you please download the build logs and check the code coverage?
Hi Arun.
I have seen the code scanning step log and is full of message of this type
Your IDE will generally only calculate the line coverage but cloud manager also takes into account the conditional coverage to calculate the final value which is generally the reason for difference.
Formula which they use :
Coverage = (CT + CF + LC)/(2*B + EL)
Formula Copied from below link
https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...
If you have jacoco configured in your project then you will get better reports when you run the build using maven.
Thanks for your reply.
I have configured my Intelliji for using Jacoco, but the numbers are the same, more than forty percent of diference between pipeline and my local IDE
Views
Replies
Total Likes
Was there no difference at all when you used Jacoco with intelliJ. I personally don't use intellij but can you post what kind of reports are being generated when you use Jacoco ? Is it showing branch coverage ?
Hi,
Try to run Jacoco's report and see how much differs from the cloud, I think it is closer than what you could get in your IDE.
Please check this thread: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/check-junit-coverage-on-ae...
Hope this helps
@katmandu25 Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies