QualInsight / qualinsight-plugins-sonarqube-badges

Plugin for SonarQube that generates badges displaying information about a project's or view's quality.
GNU Lesser General Public License v3.0
110 stars 141 forks source link

Code coverage is not visible #51

Closed BenoitClaveau closed 7 years ago

BenoitClaveau commented 7 years ago

Hi,

My code coverage is not visible. I have enable measures badges. I include a badge with metric=coverage like this api/badges/measure?key=<projectKey>&metric=coverage but the displayed image show me coverage N/A. In Sonar my coverage is ok.

Badges with api/badges/gate are ok.

Could you help me ?

Benoît.

pawlakm commented 7 years ago

Hi,

Can you please tell me a bit more about your configuration ?

If you're displaying badges from sonarqube.com SQ instance, can you please give me the project key ? Have you tried replicating this issue on a fresh SQ install ? What do you mean by "coverage is ok" ? Are you taking about UT, IT or overall coverage ?

Any other information required to replicate this behaviour would be welcome.

Kind regards,

Michel

BenoitClaveau commented 7 years ago

Hi Michel,

My configuration is

I'am using a private instance (corporate), and I'm not authorized to replicate it on sonarcube.com.

What I mean by "coverage is ok" is that in my sonarcube, I can see a coverage result. cover

But my badge display N/A coverage2

Thanks,

Benoît.

pawlakm commented 7 years ago

Hi Benoît,

When I look at your screenshot I see no coverage information (only test execution information) are you sure that you have a coverage percentage that is displayed ?

If no percentage is available then you have no coverage data, which explains the "N/A"

Michel

On Thu, Nov 10, 2016 at 3:01 PM, Benoît Claveau notifications@github.com wrote:

Hi Michel,

My configuration is

  • Sonar: 5.6.2
  • SVG Badges: 2.0.1

I'am using a private instance (corporate), and I'm not authorized to replicate it on sonarcube.com.

What I mean by "coverage is ok" is that in my sonarcube, I can see a coverage result. [image: cover] https://cloud.githubusercontent.com/assets/5556343/20179304/cc987a68-a755-11e6-9681-1adaebe6ee35.png

But my badge display N/A [image: coverage2] https://cloud.githubusercontent.com/assets/5556343/20179437/6ed7f718-a756-11e6-8238-b43df0fabf10.png

Thanks,

Benoît.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/QualInsight/qualinsight-plugins-sonarqube-badges/issues/51#issuecomment-259696837, or mute the thread https://github.com/notifications/unsubscribe-auth/AMdou3h8HCy9p6CGWiu3j7H8fqGyqyENks5q8yOvgaJpZM4Kpr-0 .

Michel Pawlak

BenoitClaveau commented 7 years ago

Ok,

I'll investigate why I haven't got any coverage data ?

Thanks Michel,

Benoît.

pawlakm commented 7 years ago

Hi Benoît,

Could you solve your problem ? Do you still need help with the plugin or can I close the issue ?

Cheers,

Michel

BenoitClaveau commented 7 years ago

Hi Michel,

Yes, you can close the issue.

Thanks,

Benoît

2016-12-03 5:14 GMT+01:00 Michel Pawlak notifications@github.com:

Hi Benoît,

Could you solve your problem ? Do you still need help with the plugin or can I close the issue ?

Cheers,

Michel

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/QualInsight/qualinsight-plugins-sonarqube-badges/issues/51#issuecomment-264615243, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTId5iVSuYjrgbhIzr6di-y7T5DLe2aks5rEOyQgaJpZM4Kpr-0 .