This is my pom configuration for jacoco:

FYI, in the remote server, I checked for jacoco.exec file and they are 
generated accurately

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<!--
<argLine>${argLine} -Xms256m -Xmx2048m</argLine>
-->
<forkCount>1</forkCount>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>report-aggregate</id>
<phase>test</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
<execution>
<id>merge-results</id>
<phase>test</phase>
<goals>
<goal>merge</goal>
</goals>
<configuration>
<fileSets>
<fileSet>
<directory>${code.coverage.project.folder}</directory>
<includes>
<include>**/jacoco.exec</include>
</includes>
</fileSet>
</fileSets>
<destFile>${code.coverage.overall.data.folder}/aggregate.exec</destFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

On Wednesday, July 5, 2023 at 4:48:16 PM UTC-4 Tejaswi Pinnaka wrote:

> Hi, 
>
> The difference between my local and remote build is that my local runs 
> with mvn clean test command and the jacoco reports are generated accurately 
> in this scenario. Whereas, on the remote server it is run using mvn clean 
> surefire:test and in this scenario the jacoco aggregate is showing 0 
> percent coverage. So, I was wondering whether surefire:test wouldn't 
> generate accurate jacoco reports.
>
> Thanks and regards,
> Tejaswi
>
> On Sunday, July 2, 2023 at 2:41:26 AM UTC-4 Marc Hoffmann wrote:
>
>> Hi,
>>
>> so what is the exact difference when you the build “remotely”? Maybe 
>> comparing both Maven log files gives you an idea.
>>
>> Regards,
>> -marc
>>
>>
>> On 30. Jun 2023, at 20:28, tejaswi pinnaka <tejaswi...@gmail.com> wrote:
>>
>> Can jacoco reports be created using mvn initialize surefire:test, because 
>> they generated in my case but the coverage shows 0 percent, this happens 
>> when running the build remotely. If I run the build on my local using mvn 
>> clean test, the reports are generated accurately.
>>
>> Thanks
>>
>> -- 
>> 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/f96dfcb6-e47d-4e32-8671-bb7e19579f67n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jacoco/f96dfcb6-e47d-4e32-8671-bb7e19579f67n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/557f860a-9861-4420-bbad-30f7a6260a8dn%40googlegroups.com.

Reply via email to