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

Avatar

Avatar

israel_sanchez

Avatar

israel_sanchez

israel_sanchez

26-10-2020

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, @inject 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.

YqVhY

AEM aem cloud SonarQube

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

26-10-2020

Hi,

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

Answers (0)