I followed these steps to setup:
https://github.com/Accenture/adop-cartridge-java/issues/12

Rebuild the app jar file with jacoco activated and rsync'ed to server

Restarted tomcat using the javaagent:

-javaagent:/foo/sonarqube/jacoco-0.7.8/lib/jacocoagent.jar=output=tcpserver,jmx=true"


I am using the example 
from 
http://www.eclemma.org/jacoco/trunk/coverage/org.jacoco.examples/org.jacoco.examples/MBeanClient.java.html
 
to reset and dump the data.

Run the reset command
Run the regression test
Run the dump command

I get a file jacoco-client.exec output. It is a bit bigger than the output 
file from my unit-test maven run. Therefore, I assume I am correct upto 
this point.

Sync data file (jacoco-client.exec) to sonar-system, using rsync

sonar-project.properties 
# Required metadata
sonar.projectKey=java-sonar-runner-simple
sonar.projectName=FOO Regression Test
sonar.projectVersion=FOO-2.2

# Comma-separated paths to directories with sources (required)
sonar.sources=src

# Language
sonar.language=java

Run sonar-runner
$ sonar-runner 
-Dsonar.host.url=http://dev-devtools-cps01.kendall.corp.akamai.com:9000/sonar

I get the run in sonarqube, but no coverage data is shown. How do I get the 
coverage data into sonarqube, assuming I collected coverage data.

-- 
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/f056c427-58d4-491f-8683-2c70a591cf0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to