Code coverage percentage is different than what I get in Codecov

I have set up AzureDevOps pipeline to analyze code in GitHub. The coverage shown in is much lower than what I see in Codecov (the same report is uploaded to codecov).

My project is a typescript-react app. Am I missing some configuration?

Here is Sonarcloud showing a 39.7% coverage

Her is Codecov showing an 83% coverage


The Codecov metric and the SonarQube coverage you are comparing are two different metrics.
Codecov shows you the line coverage whereas SQ shows the overall coverage.
I invite you to have a look at this post, you will find the explanation of this difference.


1 Like