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
asked a month ago93 views
1 Answer
3
Accepted Answer

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
answered a month ago
profile pictureAWS
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions