Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

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

Avatar

Level 3

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

Avatar

Correct answer by
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.

Arun Patidar

AEM LinksLinkedIn

View solution in original post

1 Reply

Avatar

Correct answer by
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.

Arun Patidar

AEM LinksLinkedIn