- ALM used : Azure DevOps
- CI system used : Azure DevOps
- Scanner command used when applicable (private details masked)
Task from pipe :
- task: SonarCloudPrepare@1
displayName: ‘Sonar -Code Analysis - Begin (PR)’
condition: eq(variables[‘Build.Reason’], ‘PullRequest’)
sonar.exclusions = **/*.sql
- Languages of the repository : C#
- Error observed :
Some coverage are converted other are skipped, but no coverage in Sonar :
Debug from auree devops SonarCloudAnalyze@1 task :
22:19:57.041 INFO: Parsing the OpenCover report D:\a\1\s\Src_.coverage.openCover.xml
22:19:57.042 DEBUG: CoveredFile created: (ID ‘1’, path '.cs’, indexed as ‘.cs’).
22:19:57.114 DEBUG: Skipping ‘____.cs’ as it is a test file.
22:19:57.114 DEBUG: Skipping '.cs’ as it is a test file.
22:19:57.114 DEBUG: The total number of file count statistics is ‘182’.
22:19:57.115 INFO: Coverage Report Statistics: 182 files, 0 main files, 0 main files with coverage, 182 test files, 0 project excluded files, 0 other language files.
22:19:57.115 WARN: The Code Coverage report doesn’t contain any coverage data for the included files. Troubleshooting guide: [Coverage] Troubleshooting guide for .NET code coverage import
But from other hand i have this report with Azure devops PR reports (generated with Cobertura):
*.coverage.openCover.xml are pushed Azure devops and give this report :
- Steps to reproduce