jacoco.exec file is not created

1,306 views
Skip to first unread message

sushantg...@gmail.com

unread,
Oct 27, 2015, 6:57:26 AM10/27/15
to JaCoCo and EclEmma Users
I have attached agent by adding JAVA_OPTS entry in .bashrc

JAVA_OPTS="$JAVA_OPTS -javaagent:/home/ramanuj/jacoco-0.7.4.201502262128/lib/org.jacoco.agent-0.7.4.201502262128.jar=destfile=/home/ramanuj/jococo_report/jacoco.exec"
export JAVA_OPTS

when test execution ends it doesnot create files.

Marc Hoffmann

unread,
Oct 28, 2015, 4:21:11 AM10/28/15
to jac...@googlegroups.com
If you use the official distriinution this is not the agent JAR file. It
would be

/home/ramanuj/jacoco-0.7.4.201502262128/lib/jacocoagent.jar

See dosumentation: http://eclemma.org/jacoco/trunk/doc/agent.html

Regards,
-marc

sushantg...@gmail.com

unread,
Oct 29, 2015, 3:09:17 AM10/29/15
to JaCoCo and EclEmma Users

Hello Marc,

Thanks, Thanks lot for your reply.
We are using LISA test tool for writing function tests and executes them using GUI or command line, not through ANT or Maven.
I want while executing tests JaCoCo agent should capture coverage as I have attached it to JVM.

I have seen lot documentation but examples available is not useful to me.
I have attached agent with
JAVA_OPTS="$JAVA_OPTS -javaagent:/home/ramanuj/Downloads/jacoco0.7.4/lib/jacocoagent.jar=destfile=/home/ramanuj/Downloads/jacoco_report/jacoco.exec"
export JAVA_OPTS

but still jacoco.exec file is not generated. I am not getting where is the problem

am I on correct path? please guide me.

Sushant Gaikwad

unread,
Nov 18, 2015, 5:59:46 AM11/18/15
to jac...@googlegroups.com
Hello Marc,

I am still not able to generate .exec file with the configuration mentioned in doc. 
Please help me. am I on the correct path or anything is missing.


--
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/jPgGPzgKyws/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/68209992-ca08-439d-bc47-b4dc7805d8e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards,
 Sushant Gaikwad

Sushant Gaikwad

unread,
Nov 19, 2015, 4:01:38 AM11/19/15
to jac...@googlegroups.com
Hello Marc,
 Finally I am able to generate jacoco.exec file. Thanks for your help. it has created after tomcat shutdown.
 now I want to create html report from exec file but I have question whether class files are required for it or I can generated it without class files.
 how I can generate the reports?

ssdha...@gmail.com

unread,
Nov 23, 2015, 1:38:09 AM11/23/15
to JaCoCo and EclEmma Users, sushantg...@gmail.com
Hi Sushant,
You need to use ant tasks to create your html coverage report. See the documentation for that and you need class files to generate the report and these are the same classes on which you ran your test cases.
Regards,
Simranjeet
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages