- ALM used - Azure DevOps
- CI system used - Azure DevOps
We’ve recently upgraded the dotnet version to V10 for backend applications and post that noticing code coverage dropped to 0% or so and before upgrading it was around 80% or more. We are using all 3 tasks from sonar in ADO CI pipelines - Prepare Sonar Analysis Configuration, Run Sonar Cloud Analysis and Publish Quality Gate Result.
- We are using opencover format for coverage details.
- coverlet. Collector and Microsoft.NET.Test.Sdk packages are also updated.
- No changes in pipeline template and sonar is able to identify the coverage xml file and parsing as expected.
- Tried with sonar v4 and dotnet clean tasks as well before running sonar steps.
- Tried Cobertura format of coverage report as well for testing.
Not able to find out the root cause and solution for the code coverage drop issue.