0

Am exploring Jacoco code coverage for my project.After going through various article this is what i did.

Setup Tomcat - 6.0.35 jacoco javaagent- 0.6.4

Added these parameter at the start of catalina.sh

CATALINA_OPTS="-javaagent:/Users/jgupta/Documents/Exported_Software/apache-tomcat-6.0.35/lib/jacocoagent.jar=output=tcpserver,address=*,port=6300,destfile=/Users/jgupta/Documents/Exported_Software/apache-tomcat-6.0.35/jacoco-report/jacoco.exec"

1) Started tomcat. 2) Browse through the site. 3) Stopped tomcat.

No file is created in jacoco-report. Not even jacoco.exec. Directory is empty.

Please help me out here. There has to something which am missing.

1 Answer 1

2

You set

output=tcpserver

so that means no report will be saved after tomcat stops. To get such report you need to use ant task. More info here

To get file saved on your filesystem use output=file or simply delete this parameter since this is by default.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.