The coverage data is written at the moment the JVM under test shuts
down. Make sure the tomcat server is properly shut down, not just killed.
Regards,
-marc
On 09.12.14 02:25, [email protected] wrote:
Thanks Hoffman. When I use "output=file", I just get a "jacoco.exec" of file
size '0'. This is happening during the start of tomcat server. Even after hitting pages, back n
forth, and shut down tomacat, I still see the jacoco.exec of size 0. Time stamp of it is the time
of server start.
Can someone please help.
Sent from my iPhone
On Dec 7, 2014, at 11:45 PM, Marc Hoffmann <[email protected]> wrote:
Hi Eajaz,
if you want the JaCoCo agent to create a exec *file* you should configure the
output to file:
output=file
Or just stick with the default (which is file). See documentation:
http://www.eclemma.org/jacoco/trunk/doc/agent.html
Best regards,
-marc
On 2014-12-05 18:54, [email protected] wrote:
I am working on to get Functional Test Coverage using JaCoCo and SONAR
for a java based application.
My Requirement:
1. Get Functional Test Coverage.
2. Publish the Functional Test Coverage results to SONAR(pass on the
jacoco.exec file to SONAR)
Below is the set up I did:
1. Set up instances on my DVL(development box) and make the system up
and running.
2. In the /bin directory of the instances, I am including jacoco agent
in the CATALINA_OPTS variable with below configuration: vim
catalina.sh export CATALINA_OPTS="$CATALINA_OPTS
-javaagent:${XYZ_ROOT}/WEB-INF/lib/org.jacoco.agent-0.5.8.201206210517.jar=includes=com.xyz.xx.*,excludes=com.xyz.xx.webclient.command.UIBean,output=tcpclient,address=lxdm379m7.xyz.com,port=9000"
(lxdm379m7.xyz.com is my sonar server and 9000 is the port number)
3. Now restarted the server, And the server is up. 4. I do manual
testing on my AUT which is on my DVL. Hit pages back and forth.
My Issue:
Not able to generate the jacoco.exec file.
Help I need:
1. Why is the jacoco.exec file not generated.
2. If it is generated, where can I find it? and how to pass it on to SONAR ?
Any help or clue on this is highly appreciated. I am stuck with this nightmare.
Feel free to ask me questions.
Regards
Eajaz
--
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/brOikLgBUWo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/8e0d16c4fb886136ad566bb097e2b234%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JaCoCo
and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/548683AD.9040806%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.