Hi Marc, I found everything is legal after double check the documentation you mentioned. Still not sure about where the problem is.
On Thu, Aug 9, 2018 at 12:00 PM, Marc Hoffmann <[email protected]> wrote: > Hi, > > -Dkey=value is how you add system properties. Take a look at our > documentation how to specify a JVM agent: > > https://www.jacoco.org/jacoco/trunk/doc/agent.html > > Regards, > -marc > > > On 9. Aug 2018, at 20:57, Immonnan <[email protected]> > wrote: > > Hi there, > > I am using Jacoco agent to generate code coverage report on my Websphere > server following this blog (https://dzone.com/articles/ > verifying-end-to-end-test-code-coverage-using-jaco). To start the jacoco > agent, I added the scripts to my jvm.options and the server started > successfully: > > -Djavaagent=<path to jaccoc>/jacocoagent.jar=port= > 6300,destfile=jacoco-remote.exec,output=tcpserver,address=* > -DXshareclasses=none > > After that, I tried to do automation RestAPI tests and the tests have > passed. The tests are built with maven and successfully configured for > Jacoco. But there are no exec files generated on the server. I cannot pull > jacoco data from my server neither. > > And here is the error: > [ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.1:dump > (pull-test-data) on project auto.root: Unable to dump coverage data: > Connection refused (Connection refused) -> [Help 1] > > I doubt that the jacoco agent is not running on my server. But I do not > find more solutions to this problem. > > Thanks for the help in advance. > > -- > 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/9aac6d39-afc6-44c0-930c-226697bdf0e1%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "JaCoCo and EclEmma Users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/jacoco/_n7hMYaRasE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jacoco/B864DF0A-5F7D-4B00-806F-BF18A4899FEA%40mountainminds.com > <https://groups.google.com/d/msgid/jacoco/B864DF0A-5F7D-4B00-806F-BF18A4899FEA%40mountainminds.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CADhY4RedAqc9%3DamtAW8dtnd0umKfWZ9jnyAdMN--85DYGc8rgA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
