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
posta 2 mesi fa108 visualizzazioni
1 Risposta
3
Risposta accettata

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
con risposta 2 mesi fa
profile pictureAWS
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande