mercredi 23 septembre 2020

Jacoco instrumentation process without maven

I am trying to integrate jacoco on the fly coverage using this documentation

file:///home/vansh/Downloads/jacoco/doc/agent.html

first step -

java -javaagent:/var/jenkins_home/workspace/gold_stag/gold_stagSrc/jacoco/lib/jacocoagent.jar=address=*,port=6300,includes=com.*,output=tcpserver

so, i am confused whether i m using write command, cuz i am newbie to jacoco Above command is taking me to java --help, and doing nothing.

But nothing is running at 6300 port when i check using netstat. IF step 1 get success , will take dump -

java -jar jacococli.jar dump --address localhost --port 6300 --destfile target/jacoco-it.exec

Aucun commentaire:

Enregistrer un commentaire