- ALM Azure DevOps
- CI system used Azure DevOps
- Repro language C# (Xamarin iOS and Android project)
- Steps to reproduce
- Potential workaround
SonarCloudAnalyze statement is
- task: SonarCloudPrepare@1 inputs: SonarCloud: 'Sonarcloud Connection' organization: 'ourorg' scannerMode: 'MSBuild' projectKey: 'Us_App' projectName: 'App' extraProperties: | sonar.cs.opencover.reportsPaths=$(Common.TestResultsDirectory)\*.opencover.xml sonar.coverage.exclusions=**\App.Devices.Mir.Droid\*.cs,**\Views\**\*.cs,**\App.Devices.Mir.Fake\*.cs sonar.verbose=true
When we view the Sonarcloud project at the top level alongside our other projects at https://sonarcloud.io/projects it says 0% coverage. If I go to the project’s dashboard I get 0% code coverage.
However if I select a feature branch which was branched from “master” it does give me a code coverage value AND an “Estimated after merge” value. This suggests that Code Coverage is configured in “master” branch so why is it not displaying at the top level?