Jacoco integration (regression) test not showing coverge results

39 views
Skip to first unread message

Harriet Severino

unread,
Feb 13, 2017, 1:07:32 PM2/13/17
to JaCoCo and EclEmma Users
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.

Evgeny Mandrikov

unread,
Feb 13, 2017, 5:40:03 PM2/13/17
to JaCoCo and EclEmma Users
Hi,

Integration of JaCoCo into SonarQube is not developed by JaCoCo Team, so you'd better ask help from SonarQube community - https://www.sonarqube.org/community/

Thank you for your understanding.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages