# .Net Code Coverage not shown on SonarCloud

**URL:** <https://community.sonarsource.com/t/net-code-coverage-not-shown-on-sonarcloud/30459>\
**Category:** SonarQube Cloud\
**Created:** [September 2, 2020, 6:36am UTC](https://community.sonarsource.com/t/net-code-coverage-not-shown-on-sonarcloud/30459 "2020-09-02T06:36:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raschmitt](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/raschmitt/32/14827_2.png) [@raschmitt](https://community.sonarsource.com/u/raschmitt)\
**Post date:** [September 2, 2020, 6:36am UTC](https://community.sonarsource.com/t/net-code-coverage-not-shown-on-sonarcloud/30459/1 "2020-09-02T06:36:43Z")

</div>

I’m trying to publish code coverage results to SonarCloud using the [SonarCloud Scan Action](https://github.com/marketplace/actions/sonarcloud-scan) on a GitHub repository like this:

```auto
- name: SonarCloud Scan
  uses: sonarsource/sonarcloud-github-action@master
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
  with:
    args: >
      -Dsonar.organization=raschmitt
      -Dsonar.projectKey=raschmitt_stryker-net-sample
      -Dsonar.sonar.cs.opencover.reportsPaths=**/*.opencover.xml

```

Coverage report is being generated in opencover format, using Coverlet:

```auto
- name: Test
  run: coverlet bin/Debug/netcoreapp3.1/Stryker.Net.Sample.Tests.dll -t dotnet -a "test --no-build" -f opencover
  working-directory: Stryker.Net.Sample/Stryker.Net.Sample.Tests

```

My action is using `Stryker.Net.Sample` as base directory, and reports are being placed under `Stryker.Net.Sample/Stryker.Net.Sample.Tests/coverage.opencover.xml`

Everything seems to bee fine, and my action runs with no problems, yet I can’t see any coverage results on SonarCloud.

What am I doing wrong here?

- [Complete .yml file](https://github.com/raschmitt/stryker-net-sample/blob/master/.github/workflows/dotnet-core.yml)
- [GitHub Repository](https://github.com/raschmitt/stryker-net-sample)
- [Reposityory on SonarCloud](https://sonarcloud.io/dashboard?id=raschmitt_stryker-net-sample)

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [September 2, 2020, 7:05am UTC](https://community.sonarsource.com/t/net-code-coverage-not-shown-on-sonarcloud/30459/2 "2020-09-02T07:05:46Z")

</div>

Hi @raschmitt and welcome to the community !

Do you see your source code properly on SonarCloud’s dashboard ?

---

<div class="post-metadata">

**Author:** ![raschmitt](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/raschmitt/32/14827_2.png) [@raschmitt](https://community.sonarsource.com/u/raschmitt)\
**Post date:** [September 4, 2020, 2:16am UTC](https://community.sonarsource.com/t/net-code-coverage-not-shown-on-sonarcloud/30459/3 "2020-09-04T02:16:41Z")

</div>

Yes I can see it just fine.

I ended up migrating to Azure Devops pipelines, where it worked fine with the official plugin.
