I am trying to generate a code coverage report using vstest.console.exe . I also use the .runsettings file and pass it as a parameter.
No matter what I try to do, it generates a coverage report only for moq.dll.
I use below the full text of the command parameters that I run, as well as the contents of the .runsettings file. Any idea where I am doing something wrong?
Command:
vstest.console.exe "C: \ Xyz.Tests \ bin \ Debug \ netcoreapp2.0 \ Xyz.Tests.dll" / InIsolation /EnableCodeCoverage/settings:CodeCoverage.runsettings
Content Contents of CodeCoverage.runsettings :
<RunSettings> <DataCollectionRunSettings> <DataCollectors> <DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" enabled="false"> <Configuration> <CodeCoverage> </CodeCoverage> </Configuration> </DataCollector> </DataCollectors> </DataCollectionRunSettings> </RunSettings>
Image of generated code coverage report: 
source share