Coverage Mismatch

Hi, I have a doubt. I used coverlet for code coverage generation.

It is showing more than 60% coverage here. However in SonarQube,

I’m getting this. Why is this happening? and how can i improve my coverage

Hey there!

I suggest you dive into SonarQube and identify a specific mismatch, comparing the coverage report in your pipeline with what SonarQube shows. This will help clarify where the issue lies and what you might need to adjust.

I would also suggest you check that the files with lower (or no) coverage in SonarQube are perhaps files in your repo that are not C#. SonarQube calculates coverage for all code it analyses, not just the files your coverage tool (like coverlet) considers.