Fixing SonarCloud code coverage condition count with multiple .NET Core test projects

/ 23 Apr, 2020

SonarSource made a great improvement, it will now show conditional coverage of your tests. Unfortunately, when using the pipeline as described in my previous blogpost, SonarCloud reports way too many conditions. For instance, a simple “if(condition)” would result in 10 possible conditions which clearly is incorrect but easy to fix.