Check junit coverage on AEM cloud
Hi Team,
Is it possible to check Junit coverage report on cloud manager(file info).
In local, we have unit coverage almost around 80% but in cloud it showing 52%
Hi Team,
Is it possible to check Junit coverage report on cloud manager(file info).
In local, we have unit coverage almost around 80% but in cloud it showing 52%
The Junit coverage happens in the same way which @nitesh_kumar-1 mentioned.
Can you try out the jacoco plugin to measure the JUNIT Coverage by adding the entry in your pom.xml file.
In our case, there is a very minor difference coming with AEM Cloud report and Jacoco Report -> index.html
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<!-- attached to Maven test phase -->
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
Hope this helps.
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.