Visual Studio Code Encoding Does Not Show All Assemblies

I have 20 projects in my .SLN file. I run my unit tests through Test Explorer and generate code coverage. Only eight projects are displayed in the coverage (see. Screenshots). I use the runsettings file in which I commented on the contents of all the <exclude> tags, for example:

<PublicKeyTokens> <!-- Exclude Visual Studio extensions: --> <Exclude> <!-- <PublicKeyToken>^B77A5C561934E089$</PublicKeyToken> <PublicKeyToken>^B03F5F7F11D50A3A$</PublicKeyToken> <PublicKeyToken>^31BF3856AD364E35$</PublicKeyToken> <PublicKeyToken>^89845DCD8080CC91$</PublicKeyToken> <PublicKeyToken>^71E9BCE111E9429C$</PublicKeyToken> <PublicKeyToken>^8F50407C4E9E73B6$</PublicKeyToken> <PublicKeyToken>^E361AF139669C375$</PublicKeyToken> --> </Exclude> </PublicKeyTokens> 

I can’t understand why the other 12 projects are not shown in the coverage results. Any ideas?

Draft Solutions :

Visual studio project listing

Code coverage results :

enter image description here

+3
source share
2 answers

Aggregates are not displayed, as they are not loaded during the current test run.

Add a few simple tests that use the type in each of the other assemblies.

+8
source

Could you also add:

  <CodeCoverage> <ModulePaths> <Include> <!--Include all loaded .dll assemblies and .exe executables--> <ModulePath>.*\.dll$</ModulePath> <ModulePath>.*\.exe$</ModulePath> </Include> </ModulePaths> </CodeCoverage> 
0
source

Source: https://habr.com/ru/post/1205173/


All Articles