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

Bypass Junit coverage validation on Cloud manager

Avatar

Level 2

We are not planning to write junit as part of the development at least for now. Is there a way to bypass as i read there is a need for 50% coverage for cloud manager build.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi @andmiccrew ,

For junit, code coverage is required to be 50% for the cloud manager code quality to pass the check. But this is not mandatory which is going to fail the build. If the coverage is lower than 50%, you will get a notification and your deployment will be paused. You can still override and proceed with the deployment. You can select an option as continue immediately in the pipeline as well. Below screenshots for your reference:

Screen Shot 2022-04-04 at 7.18.37 PM.pngScreen Shot 2022-04-04 at 7.18.50 PM.pngScreen Shot 2022-04-04 at 7.18.55 PM.pngscreenshot.png

 

But the recommendation is to have junit coverage atleast 80%. 

View solution in original post

0 Replies

Avatar

Correct answer by
Level 10

Hi @andmiccrew ,

For junit, code coverage is required to be 50% for the cloud manager code quality to pass the check. But this is not mandatory which is going to fail the build. If the coverage is lower than 50%, you will get a notification and your deployment will be paused. You can still override and proceed with the deployment. You can select an option as continue immediately in the pipeline as well. Below screenshots for your reference:

Screen Shot 2022-04-04 at 7.18.37 PM.pngScreen Shot 2022-04-04 at 7.18.50 PM.pngScreen Shot 2022-04-04 at 7.18.55 PM.pngscreenshot.png

 

But the recommendation is to have junit coverage atleast 80%. 

Avatar

Administrator

@andmiccrew 

[Webinar | AEM GEMs] Looking under the hood - Cloud Manager 2022 | Register: https://adobe.ly/3t4jfgp  & Ask Questions related to this Webinar: https://adobe.ly/3O0rdzd 

Date &Time: Wednesday, June 15, 2022 - 8 am PDT OR 5 pm CET OR 8.30 pm IST
Speakers: Remus Stratulat & Shankari Panchapakesan

Share this within your Organisation and with your AEM peers!!