Sonarqube not picking up tests

(Ben) #1

SonarQube 5.4, Jacoco plugin, Gradle, Scanner 2.7

My project structure is as follows:
root |

| proja
| projb
| projc
| test

I’m trying to upload code coverage to Sonar server. When I run sonarqube, it keeps saying “Coverage information was not collected. Perhaps you forget to include debug information into compiled classes?”.
In proja, projb, projc I compile with the “-g” flag to debug and then in the test project gradle, I point java.binaries to the binaries of proja, projb, projc. I am sure the paths are correct here. On my sonar server, it says “This component does not have coverage details.” for my test project. I am sure that the jacoco generated report is in the correct location. I specified “sonar.core.codeCoveragePlugin” to jacoco as well.

How can I resolve these problems?

(G Ann Campbell) #2

Hi,

The current LTS is 6.7.6, and the latest version is 7.6. Version 5.4 was released nearly three years ago, before even the previous LTS. I’m afraid you’re going to have a hard time finding help. You should upgrade to at least 6.7.6, if not 7.6, at your earliest convenience.

Note that to get from 5.4 to 6.7.6, you’ll need an intermediate upgrade to 5.6.7 first.

 
Ann