Rule violated for bundle venia.core: branches covered ratio is 0.37, but expected minimum is 0.50 | Community
Skip to main content
Level 3
July 20, 2021
Question

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

  • July 20, 2021
  • 2 replies
  • 4317 views

When trying to compile the venia example from 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content-and-commerce/storefront/developing/customize-cif-components.html?lang=en#bonus-challenge

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Level 3
July 20, 2021

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.

Kishore_Kumar_
Level 9
August 9, 2021

Hi @yonit_david ,

 

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