# Sonarqube issue Not getting the code coverage results in the sonarqube portal through azure pipleine

**URL:** <https://community.sonarsource.com/t/sonarqube-issue-not-getting-the-code-coverage-results-in-the-sonarqube-portal-through-azure-pipleine/108738>\
**Category:** SonarQube Server / Community Build\
**Tags:** csharp, sonarqube, scanner, coverage\
**Created:** [February 7, 2024, 5:51am UTC](https://community.sonarsource.com/t/sonarqube-issue-not-getting-the-code-coverage-results-in-the-sonarqube-portal-through-azure-pipleine/108738 "2024-02-07T05:51:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arshitha](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@Arshitha](https://community.sonarsource.com/u/Arshitha)\
**Post date:** [February 7, 2024, 5:51am UTC](https://community.sonarsource.com/t/sonarqube-issue-not-getting-the-code-coverage-results-in-the-sonarqube-portal-through-azure-pipleine/108738/1 "2024-02-07T05:51:46Z")

</div>

task: SonarQubePrepare@5  
scannerMode: ‘MSBuild’  
sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/_.trx  
sonar.language=c# sonar.cs.opencover.reportsPaths=$(Agent.TempDirectory)/_/coverage.opencover.xml

I need to get the code coverage result and unit test results from the main folder when integrated through the azure pipeline , try with the dotnetcorecli with cobertura method the results are not displaying.

- task: DotNetCoreCLI@2  
inputs:  
command: ‘test’  
projects: ‘\*\*/\*test.csproj’  
arguments: --configuration $(BuildConfiguration) --collect:“XPlat Code Coverage” – DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura,opencover  
continueOnError: true

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [February 8, 2024, 10:35am UTC](https://community.sonarsource.com/t/sonarqube-issue-not-getting-the-code-coverage-results-in-the-sonarqube-portal-through-azure-pipleine/108738/2 "2024-02-08T10:35:31Z")

</div>

What do the logs say about the import of coverage data?

> [@How to find logs about importing code coverage](https://community.sonarsource.com/t/how-to-find-logs-about-importing-code-coverage/73317):
>
> When coverage data isn’t appearing as expected in SonarQube Server / Community Build or SonarQube Cloud, the first place you should look is the scanner logs. Where do I find the scanner logs?warning This will likely be broken out into its own guide soon The Scanner logs are the output of executing one of the [scanners](https://docs.sonarqube.org/latest/analysis/overview/), either directly or wrapped by one of many integrations, such as the [SonarScanner for Jenkins](https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-jenkins/), [SonarScanner for Azure DevOps](https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-azure-devops/), [SonarQube](https://github.com/SonarSource/sonarqube-scan-action)/[SonarCloud](https://github.com/marketplace/actions/sonarcloud-scan) GitHub Actions or [SonarQube](https://bitbucket.org/sonarsource/sonarqube-scan/src/master/) /…
