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
demandé il y a 2 mois108 vues
1 réponse
3
Réponse acceptée

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
répondu il y a 2 mois
profile pictureAWS
EXPERT
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions