SonarQube 6.1 JUnit Reports and JoCoCo UT report no more found

4,124 views
Skip to first unread message

lah...@hotmail.com

unread,
Oct 18, 2016, 8:42:54 AM10/18/16
to SonarQube
Hi,

I upgraded from SonarQube 5.6 to 6.1 yesterday.
Now, junit test reports and UT JaCoCo reports are not found.

Here is my sonar configuration (no changes with the previous one):
sonar.jacoco.itReportPath=target/coverage-reports/jacoco-it.exec
sonar.jacoco.reportPath=target/coverage-reports/jacoco-ut.exec
sonar.junit.reportsPath=target/surefire-reports

when launching a maven job in jenkins performing "verify sonar:sonar" targets, the result is the following :

Sensor SurefireSensor
[INFO] parsing C:\target\surefire-reports
[ERROR] Reports path not found or is not a directory: C:\target\surefire-reports
[INFO] Sensor SurefireSensor (done) | time=1ms
[INFO] Sensor JaCoCoSensor
[INFO] JaCoCoSensor: JaCoCo report not found : C:\target\coverage-reports\jacoco-ut.exec
[INFO] Sensor JaCoCoSensor (done) | time=0ms
[INFO] Sensor JaCoCoItSensor
[INFO] JaCoCoItSensor: JaCoCo IT report not found: C:\jenkinsslave\workspace\2010_PS_CORE_METIER_TU_01\target\coverage-reports\jacoco-it.exec


JaCoCo IT Report doesn't exist so it's normal
C:\jenkinsslave\workspace\2010_PS_CORE_METIER_TU_01\target\coverage-reports\jacoco-ut.exec and C:\jenkinsslave\workspace\2010_PS_CORE_METIER_TU_01\target\surefire-reports are present

I don't understand why absolute path is used instead of relative path when searching for surefire-reports and JoCoCo UT report

An idea ?

Nicolas Peru

unread,
Oct 21, 2016, 11:24:18 AM10/21/16
to lah...@hotmail.com, SonarQube
Hi, 
The path used is the one you provide, so there might be some misconfiguration on your side (are you sure that the configuration you mentioned is the one used ?) You may also want to use the proper \ instead of / if you are running your analysis under windows.

HTH, 

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/a08f23af-f1c8-4d49-a964-f08798c4834e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Nicolas PERU | SonarSource
Senior Developer
http://sonarsource.com

lah...@hotmail.com

unread,
Nov 3, 2016, 9:25:26 AM11/3/16
to SonarQube, lah...@hotmail.com
Hi Nicolas,

thanks for your answer.

SonarQube is installed on Debian OS.
Maven targets (verify and soanr:sonar) are applied on java projects under windows OS.

Here is my sonarqube configuration :



If I explicitly pass the following parameters on my command line :
mvn verify sonar:sonar -Dsonar.junit.reportsPath=target\surefire-reports -Dsonar.jacoco.itReportPath=target\coverage-reports\jacoco-ut.exec
all reports are found.

I don't know what is the difference. Replace \ instead of / has no effect.

Rachel
Auto Generated Inline Image 1
Reply all
Reply to author
Forward
0 new messages