Support function coverage

Hi,
As I think, SonarQube doesn’t support function coverage. Is there any alternative to function coverage?
Or do you have plan to provide the feature in the future?
Many thanks,
Alvin

Hi Alvin,

You created 2 posts in 2 days on the same subject. Please don’t do that. I’m going to consolidate your other thread into this one.

Regarding your feature request, could you elaborate on why you want function coverage? If nothing else that might better arm people to suggest an alternative. :smiley:

Also, you should note that SonarQube mostly collects and reports the coverage data generated by other tools. In order for us to show it to you it needs to be in the underlying reports, e.g. the JaCoCo report. If it’s not already available from the tool vendor of your choice, you probably need to start your lobbying for support there.

 
:slightly_smiling_face:
Ann

Hi,

Is there a way to measure function coverage with SonarQube?
I could measure Line and Branch Coverage however could not find how to get function coverage.

Code inforation:

  • Language: Java
  • Build: Gradle/Maven
  • Jacoco plugin

Many thanks,
Alvin

Hi Alvin,

That’s not a metric we collect, if it’s even available from JaCoCo.

 
:woman_shrugging:
Ann