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 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/8e0d16c4fb886136ad566bb097e2b234%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to