Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

israel_sanchez
Level 2
Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

Hi,

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

View solution in original post

1 Reply
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

Hi,

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

View solution in original post