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
BedrockMission!

Learn more

View all

Sign in to view all badges

Rule violated for bundle venia.core: branches covered ratio is 0.37, but expected minimum is 0.50

Yonit
Level 2
Level 2

When trying to compile the venia example from 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content-and-commerce/storef...

getting this error

Rule violated for bundle venia.core: branches covered ratio is 0.37, but expected minimum is 0.50

also see this:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/e207083/.m2/repository/uk/org/lidalia/slf4j-test/1.0.1/slf4j-test-1.0.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/e207083/.m2/repository/com/adobe/aem/aem-sdk-api/2021.5.5343.20210524T070738Z-210527/aem-sdk-api-2021.5.5343.20210524T070738Z-210527.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [uk.org.lidalia.slf4jtest.TestLoggerFactory]

 

Does anyone know how to resolve?

2 Replies
Yonit
Level 2
Level 2

in order to get rid of the jacoco coverage error in this case, you need to add some tests for the added methods to MyProductTeaserImpl.java to  MyProductTeaserImplTest.java and this is not specified in the tutorial.

kishorekumar14
Level 8
Level 8

Hi @Yonit ,

 

Please take a latest release of Venia Reference Site. Code coverage has been increased and it will fix the code coverage threshold should be > 50 % condition.

 

https://github.com/adobe/aem-cif-guides-venia/releases/tag/venia-2021.07.26