Hi ,
I am trying to run integration tests on my java code from remote server, so whenver my tests hit my code server, jacoco records it.
I am new to jacoco, till now i have gather that there is tcp server method which doesnot require any restart.
1) I have added below line in my /etc/profile.
export JAVA_OPTS="-javaagent:/home/vansh/jacoco/lib/jacocoagent.jar=address=*,port=57026,destfile=/home/vansh/jacoco/jacoco.exec,output=tcpserver"
2)but when i am trying to take dump using below command -
java -jar jacococli.jar dump --address * --port 57026 --destfile /home/vansh/jacoco/jacoco.exec
ERROR :: Exception in thread "main" java.net.UnknownHostException: jacococli.jar: Name or service not known
at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
I checked that there is nothing running on port 57026, after i reload /etc/profile , could anyone confirm where i am going wrong?
Thanks in advance