I followed these steps to setup:
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"
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
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.