# Code Coverage Not able to find for VSTEST

**URL:** <https://community.sonarsource.com/t/code-coverage-not-able-to-find-for-vstest/21820>\
**Category:** SonarQube Server / Community Build\
**Created:** [March 19, 2020, 9:30am UTC](https://community.sonarsource.com/t/code-coverage-not-able-to-find-for-vstest/21820 "2020-03-19T09:30:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anha](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Anha](https://community.sonarsource.com/u/Anha)\
**Post date:** [March 19, 2020, 9:30am UTC](https://community.sonarsource.com/t/code-coverage-not-able-to-find-for-vstest/21820/1 "2020-03-19T09:30:38Z")

</div>

Continuing the discussion from [MS .coverage -\> .coveragexml](https://community.sonarsource.com/t/ms-coverage-coveragexml/21494/13):

Hi @mickaelcaro  
I tried to use .coveragexml and removed the forward slashes as suggested by you. But it din’t worked for me. Not it’s not able to find the .coveragexml and says “Pattern matcher returns ‘0’ files.”

---

<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:** [March 19, 2020, 10:28am UTC](https://community.sonarsource.com/t/code-coverage-not-able-to-find-for-vstest/21820/2 "2020-03-19T10:28:13Z")

</div>

Can you try with the full absolute path then ? To see if that changes something.

Thanks.

---

<div class="post-metadata">

**Author:** ![Anha](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Anha](https://community.sonarsource.com/u/Anha)\
**Post date:** [March 19, 2020, 11:00am UTC](https://community.sonarsource.com/t/code-coverage-not-able-to-find-for-vstest/21820/3 "2020-03-19T11:00:10Z")

</div>

Hi Mic,  
I tried and now it says :

05:48:06.904 DEBUG: The total number of file count statistics is ‘3’.  
05:48:06.904 INFO: **Coverage Report Statistics: 3 files, 0 main files, 0 main files with coverage, 3 test files, 0 project excluded files, 0 other language files.**

---

<div class="post-metadata">

**Author:** ![Anha](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Anha](https://community.sonarsource.com/u/Anha)\
**Post date:** [March 26, 2020, 9:53am UTC](https://community.sonarsource.com/t/code-coverage-not-able-to-find-for-vstest/21820/4 "2020-03-26T09:53:58Z")

</div>

Hi @mickaelcaro  
Could you please suggest me on this. Thank you!

---

<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:** [March 26, 2020, 10:32am UTC](https://community.sonarsource.com/t/code-coverage-not-able-to-find-for-vstest/21820/5 "2020-03-26T10:32:40Z")

</div>

Hi,

Could you please share the end step log, with /d:sonar.verbose=true please ? That whould help me to troubleshoot.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Anha](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Anha](https://community.sonarsource.com/u/Anha)\
**Post date:** [March 30, 2020, 6:09pm UTC](https://community.sonarsource.com/t/code-coverage-not-able-to-find-for-vstest/21820/7 "2020-03-30T18:09:42Z")

</div>

H @mickaelcaro , Below is the log for same :  
08:36:24.278 INFO: Adding this code coverage report to the cache for later reuse: E:\jenkins\builds\workspace\rkets-GH\_InternalService\_devTest.\code\UHI.Portal\TestResults\VisualStudio.Coveragexml  
08:36:24.278 DEBUG: Analyzing coverage after aggregate found ‘3’ coverage files.  
08:36:24.278 DEBUG: Skipping ‘E:\jenkins\builds\workspace\rkets-GH\_InternalService\_devTest\code\UHI.GlobalSolution\UHI.GlobalSolution.Services.TEST\Claim\ClaimTests.cs’ as it is a test file.  
08:36:24.278 DEBUG: Skipping ‘E:\jenkins\builds\workspace\rkets-GH\_InternalService\_devTest\code\UHI.GlobalSolution\UHI.GlobalSolution.Services.TEST\Claim\ClaimCodeLookup.cs’ as it is a test file.  
08:36:24.279 DEBUG: Skipping ‘E:\jenkins\builds\workspace\rkets-GH\_InternalService\_devTest\code\UHI.GlobalSolution\UHI.GlobalSolution.Services.TEST\Lookup\CurrencyTests.cs’ as it is a test file.  
08:36:24.279 DEBUG: The total number of file count statistics is ‘3’.  
08:36:24.279 INFO: Coverage Report Statistics: 3 files, 0 main files, 0 main files with coverage, 3 test files, 0 project excluded files, 0 other language files.  
08:36:24.279 WARN: The Code Coverage report doesn’t contain any coverage data for the included files. For troubleshooting hints, please refer to [https://docs.sonarqube.org/x/CoBh](https://docs.sonarqube.org/x/CoBh)
