C# Code Coverage Ignoring Certain Projects

coverage
(Jason Doherty) #1

Hi,

We’re using SonarCloud and are using the test code coverage tools. For some reason a couple of projects do not report code coverage? For example I have 2 web api projects in a solution - one reports its coverage - one doesn’t?

I’ve got them a unique ProjectGuid and the DebugType is set ‘pdbonly’ in both csproj files. Both projects are .Net Core 2.1…

We’re using AzureDevops to run the build and upload to Sonar - why would it work for one and not the other? I’ve also downloaded the code coverage file from the artifact in the AzureDevops build and the elusive project is covered in the file when open in Visual Studio…

image

Thanks