Please read the documentation at https://www.jacoco.org/jacoco/trunk/doc/agent.html which states the following about the "output" parameter
Output method to use for writing coverage data. Valid options are: file: At VM termination execution data is written to the file specified in the destfile attribute. tcpserver: The agent listens for incoming connections on the TCP port specified by the address and port attribute. Execution data is written to this TCP connection. Which in my opinion perfectly explains why file is not created in case of "output=tcpserver". On Monday, October 5, 2020 at 6:22:52 PM UTC+2 raviteja y 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/66070aff-458d-49ec-8381-c20041eadcadn%40googlegroups.com.
