I am using the offline instrumentation of classes. I have couple of queries. Please help to resolve them
1. I have my pre-instrumented classes in folder "instrumented". Now, While running java application I am using below command :
java -cp .:instrumented:jacoco-0.8.1/lib/jacocoagent.jar Main.class server config.yml
How can I give VM arguments to configure Jacoco properties such as output, address and port ?
I have tried -Djacoco-agent.output=tcpserver,address=localhost,port=6301 and also
-Djacoco-agent.output=tcpserver -Djacoco-agent.address=localhost -Djacoco-agent.port=6301
But while dumping the coverage using jacococli.jar it gives error:
Connection to 127.0.0.1(6301) refused.
2. Also what is class path also has same application jar. So there are my instrumented classes and also classes that are non-instrumented in jar without which my Main class gives NoClassFound Error. Placing instrumented class in class path along with Jacoco agent jar will capture the coverage ?
Please help to resolve these queries
Hello Team,I am using the offline instrumentation of classes. I have couple of queries. Please help to resolve them
1. I have my pre-instrumented classes in folder "instrumented". Now, While running java application I am using below command :
java -cp .:instrumented:jacoco-0.8.1/lib/jacocoagent.jar Main.class server config.ymlHow can I give VM arguments to configure Jacoco properties such as output, address and port ?
I have tried -Djacoco-agent.output=tcpserver,address=localhost,port=6301 and also
-Djacoco-agent.output=tcpserver -Djacoco-agent.address=localhost -Djacoco-agent.port=6301
But while dumping the coverage using jacococli.jar it gives error:
Connection to 127.0.0.1(6301) refused.
2. Also what is class path also has same application jar.
So there are my instrumented classes and also classes that are non-instrumented in jar
without which my Main class gives NoClassFound Error. Placing instrumented class in class path
along with Jacoco agent jar will capture the coverage ?