How increment the code coverage percent in Sonar Qube result for AEM Cloud? | Community
Skip to main content
israel_sanchez
Level 3
October 26, 2020
Solved

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

  • October 26, 2020
  • 1 reply
  • 1937 views

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.
Best answer by arunpatidar

Hi,

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

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
October 26, 2020

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