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
feita há 2 meses107 visualizações
1 Resposta
3
Resposta aceita

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
respondido há 2 meses
profile pictureAWS
ESPECIALISTA
avaliado há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas