JaCoCo report shows 0% coverage for Blu Age modernized application

3

When trying to run JaCoCo on my Blu Age modernized application (CardDemo), I get 0% coverage after navigating in the online application screens. I found a weird line when looking at the execution log of JaCoCo: Classes in bundle 'Entities Layer' do not match with execution data. For report generation the same class files must be used as at runtime.

AWS
Alae
已提问 2 个月前106 查看次数
1 回答
3
已接受的回答

JaCoCo uses a value called “classId” to compare java classes used at runtime and at analysis time. If these classes are different, the classId values are different, and JaCoCo does not compare them, thus the 0% coverage.
Source: https://www.eclemma.org/jacoco/trunk/doc/classids.html

You can check the Blu Age L3 Workshop for CardDemo to help you with fixing the 0% coverage you observe, because it depends on your own configuration.
https://catalog.workshops.aws/aws-blu-age-l3-certification-workshop/en-US/automation/execute, in insert “0% Coverage for JaCoCo”.

AWS
Damien
已回答 2 个月前
profile pictureAWS
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则