SonarCloud code coverage for .net core projects

Can anyone help me with code coverage for .net core projects.

Please provide more details if you want to get help.

Hi Fabrice Bellingard,

We are using azure DevOps for our build pipeline.Tor test cases we are using VSTest assemblies task and netcoreapp2.1 framework.
let me know if you need more information.

Thank You.

Did you follow for the setup?

My question was sonarcloud code coverage for .net core projects.
We have the setup already in our organization but we were not getting the coverage for .net core projects. As sonarcloud has recently started supporting .net core we started getting coverage but there is a lot of fluctuations in the results. Can we know why and what can be done to get a standard report like we get for .net framework projects.
Any implementation documentation for .net core projects with sonarcloud is also much appreciated. Thanks in advance.

Can you please clarify what happens? Again, as long as you don’t provide more details about your current setup and configuration (and maybe also share some logs), it’s simply impossible to help you.

Hi Fabrice,

Currently we are facing issue with one of our project which is .net core and we are not able to get coverage for it. What logs/details can I share with you for you to analyse and help us.
Our organization setup: Azure DevOps with SonarCloud.

Same with us coverage file generates in vsts but coverage report does’nt show up on SonarCloud.

So it looks related to VSTS-179 - for which we tried to deploy a fix 2 weeks ago but had to revert because of potential regression. Hopefully, we’ll have it finally fixed for next week.

After which,will we be able to get coverage for .net core 2.1 on sonarcloud?

hi @shravanipandarmish-g - it should work now, as VSTS-179 got fixed

A post was split to a new topic: AzureDevops integration with SonarCloud - no code coverage

A post was split to a new topic: Sonarcloud scan - cannot find coverage file path