Hi Marc,

If I try like below by adding preparing agent in function test pom I am 
able to see jacoco.exec but it's showing 0% as coverage report. Pl check 
and let me know what I am doing wrong here


<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.3</version>
<configuration>
<address>IP Address of mac</address>
<destFile>/target/jacoco-ft.exec</destFile>
<port>6300</port>
<reset>false</reset>
<append>true</append>
</configuration>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<phase>post-integration-test</phase>
<goals>
<goal>dump</goal>
</goals>
</execution>
</executions>

On Monday, 5 October 2020 at 11:47:31 UTC-5 raviteja y wrote:

> Hi Marc,
>
> Thanks for the insight. I tried in my functional tests pom file something 
> like below. Still I don't see jacoco exec generating. Do I need to add 
> anything else here?
>
> <plugin>
> <groupId>org.jacoco</groupId>
> <artifactId>jacoco-maven-plugin</artifactId>
> <version>0.8.3</version>
> <configuration>
> <address>Ipaddress</address>
> <destFile>/target/jacoco-ft.exec</destFile>
> <port>6300</port>
> <reset>false</reset>
> <append>true</append>
> </configuration>
> <executions>
> <execution>
> <phase>post-integration-test</phase>
> <goals>
> <goal>dump</goal>
> </goals>
> </execution>
> </executions>
>
> On Monday, 5 October 2020 at 11:31:27 UTC-5 raviteja y wrote:
>
>> Hi Marc,
>>
>> Thanks for your reply. If I want to see what data is collected at tcp 
>> port how can I check it?
>>
>> Regards,
>> Ravi
>>
>> On Monday, 5 October 2020 at 11:26:28 UTC-5 Marc R. Hoffmann wrote:
>>
>>> Hi,
>>>
>>> because with the parameter “output” you define the agent outputs 
>>> coverage data. If you specify “file” a file ist written. If you specify 
>>> “tcpserver” the agent opens a TCP port where the data can be collected from.
>>>
>>> See documentation: https://www.jacoco.org/jacoco/trunk/doc/agent.html
>>>
>>> Regards,
>>> -marc
>>>
>>> On 5. Oct 2020, at 18:22, raviteja y <[email protected]> wrote:
>>>
>>> Hi there,
>>>
>>> I am trying to created jaococ code coverage while running the 
>>> application on my local host. For that in my jvm configuration I made 
>>> changes like below and start the application. But jacoco.exec is not 
>>> creating. But with same command and if I give output=file it's generating 
>>> jacoco.exec file. what's the reason it's not creating when 
>>> output=tcpserver. Can some one one pl help me?
>>>
>>>
>>> -javaagent:<pathtojacoco>/org.jacoco.agent-0.8.5-runtime.jar=port=6300,destfile=<pathtojacocoexec>/target/jacoco-ft.exec,output=tcpserver
>>>
>>> Appreciate your help!
>>>
>>>
>>>
>>> -- 
>>> 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 [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jacoco/628f8f93-2bab-4826-8705-8651d5a8fb00n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jacoco/628f8f93-2bab-4826-8705-8651d5a8fb00n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/d4a7d868-d7eb-4800-b7b2-fca5909b150en%40googlegroups.com.

Reply via email to