How increment the code coverage percent in Sonar Qube result for AEM Cloud? | Community
Skip to main content
israel_sanchez
Level 3
Oct 26, 2020 5:54 PM UTC
Solved

How increment the code coverage percent in Sonar Qube result for AEM Cloud?

I am using Adobe Cloud CI/CD build pipeline for my build process which is integrated with Sonar Qube.

As a code Model, I have a very simple POJO, with 3 attributes, @586265 annotation for each one, and getters and setters as usual.

When I push the code to remote/develop the SonarQube starts to test the code, then I can see the code coverage is under 50% all the time as shown in the below image.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 26, 2020 6:36 PM UTC

Hi,

You have to write Junit test cases to increase code coverage for your model. Make sure your test cases cover maximum code.

Arun Patidar

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Oct 26, 2020 6:36 PM UTC

Hi,

You have to write Junit test cases to increase code coverage for your model. Make sure your test cases cover maximum code.

Translate
Arun Patidar