Unanticipated results for Jacoco build.

15 views
Skip to first unread message

Arnav Gupta

unread,
Jun 24, 2024, 10:28:48 AM (9 days ago) Jun 24
to JaCoCo and EclEmma Users
Hey Team,
We have enabled Jacoco for one of our application where we are not getting expected results for the code coverage.
Following is our generated coverage report :
Screenshot 2024-06-24 at 7.55.38 PM.png
For which we are using following parameters :

<jacoco.coverage.line>0.95</jacoco.coverage.line>
<jacoco.coverage.branch>0.68</jacoco.coverage.branch>
<jacoco.coverage.instruction>0.91</jacoco.coverage.instruction>
<jacoco.coverage.complexity>0.54</jacoco.coverage.complexity>
<jacoco.coverage.method>1</jacoco.coverage.method>
<jacoco.coverage.class>1</jacoco.coverage.class>

Ideally our ```mvn install``` should have been failed as it is failing on our local host for the provided values but seems like not the case.
Want to understand what we are missing here?

Marc Hoffmann

unread,
Jun 24, 2024, 1:49:00 PM (9 days ago) Jun 24
to JaCoCo and EclEmma Users
Hi,

what JaCoCo integration are you using? Neither the screenshot nor the configuration looks like something we’re working on here at the JaCoCo project.

Regards,
-marc

On 24. Jun 2024, at 16:28, Arnav Gupta <arnav.gu...@gmail.com> wrote:

Hey Team,
We have enabled Jacoco for one of our application where we are not getting expected results for the code coverage.
Following is our generated coverage report :
<Screenshot 2024-06-24 at 7.55.38 PM.png>
For which we are using following parameters :

<jacoco.coverage.line>0.95</jacoco.coverage.line>
<jacoco.coverage.branch>0.68</jacoco.coverage.branch>
<jacoco.coverage.instruction>0.91</jacoco.coverage.instruction>
<jacoco.coverage.complexity>0.54</jacoco.coverage.complexity>
<jacoco.coverage.method>1</jacoco.coverage.method>
<jacoco.coverage.class>1</jacoco.coverage.class>

Ideally our ```mvn install``` should have been failed as it is failing on our local host for the provided values but seems like not the case.
Want to understand what we are missing here?


--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/fd0d21de-4a68-450b-8c05-8ed889e3c14en%40googlegroups.com.

Arnav Gupta

unread,
Jun 25, 2024, 12:18:47 AM (8 days ago) Jun 25
to JaCoCo and EclEmma Users
Hey,
We are using following JaCoCo plugin integrated with our kotlin application.
Plugin details :
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<configuration>
<includes>
<include>**/api/configuration/**</include>
<include>**/api/helper/**</include>
<include>**/api/mapper/**</include>
<include>**/api/service/**</include>
<include>**/api/util/**</include>
<include>**/api/validation/**</include>
</includes>
<excludes>
<exclude>**/api/model/**</exclude>
<exclude>**/api/validation/model/**</exclude>
<exclude>**/api/service/model/**</exclude>
<exclude>**/api/service/kafka/**</exclude>
<exclude>**/api/service/clients/**</exclude>
<exclude>**/api/configuration/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
Reply all
Reply to author
Forward
0 new messages