Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverlet producing incomplete coverage results #1278

Open
jsiegmund opened this issue Jan 12, 2022 · 26 comments
Open

Coverlet producing incomplete coverage results #1278

jsiegmund opened this issue Jan 12, 2022 · 26 comments
Labels
question This issue is a question stale waiting for customer Waiting for customer action

Comments

@jsiegmund
Copy link

jsiegmund commented Jan 12, 2022

Hi there, we have kind of an oddball situation here which is potentially causing issues with Coverlet. This is a client project / client code so unfortunately I can only share the set-up and not the actual bits and pieces.

The solution is quite large with a total of 128 projects. These are all .NET Framework 4.8 SDK-style. We have WebAPI projects in there which normally you cannot use with SDK style, but using https://github.com/CZEMacLeod/MSBuild.SDK.SystemWeb we have converted these to SDK style as well. We're not using any test frameworks like xunit or such, and all package versions are on the latest (MSTest / Test SDK and Coverlet as well).

Due to the SDK style projects we cannot use dotnet test, that just does not work. We can use dotnet vstest however, or simply call vstest.console.exe so that is what we do. Coverlet collectors is set-up using a runsettings file which is not that special:

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
	<RunConfiguration>
		<TreatNoTestsAsError>false</TreatNoTestsAsError>
		<TargetPlatform>x64</TargetPlatform>
	  <TargetFrameworkVersion>Framework45</TargetFrameworkVersion>
	</RunConfiguration>
	<LoggerRunSettings>
		<Loggers>
			<Logger friendlyName="trx" enabled="True"/>
		</Loggers>
	</LoggerRunSettings>
       <!-- Configurations for data collectors -->
	<DataCollectionRunSettings>
		<DataCollectors>
			<DataCollector friendlyName="XPlat code coverage">
				<Configuration>
					<Format>lcov,cobertura</Format>
					<IncludeTestAssembly>false</IncludeTestAssembly>
					<CodeCoverage>
						<ModulePaths>
							<Exclude>
								<ModulePath>.*FluentAssertions.dll</ModulePath>
								<ModulePath>.*Moq.dll</ModulePath>
								<ModulePath>.*System.reactive.dll</ModulePath>
							</Exclude>
						</ModulePaths>
						<Sources>
							<Exclude>
								<Source>.*\\Reference.cs</Source>
							</Exclude>
						</Sources>
						<!-- Match attributes on any code element: -->
						<Attributes>
							<Exclude>
								<!-- Don't forget "Attribute" at the end of the name -->
								<Attribute>^System\.Diagnostics\.DebuggerHiddenAttribute$</Attribute>
								<Attribute>^System\.Diagnostics\.DebuggerNonUserCodeAttribute$</Attribute>
								<Attribute>^System\.CodeDom\.Compiler\.GeneratedCodeAttribute$</Attribute>
								<Attribute>^System\.Diagnostics\.CodeAnalysis\.ExcludeFromCodeCoverageAttribute$</Attribute>
							</Exclude>
						</Attributes>
					</CodeCoverage>
				</Configuration>
			</DataCollector>
		</DataCollectors>
	</DataCollectionRunSettings>
</RunSettings>

(note that this is the current state, I've been messing around with options to no avail)

Now when I run dotnet vstest supplying the full list of DLLs we want to check, I use the following command:

dotnet vstest /Diag:"c:\temp\diag.txt" /Settings:"C:\git\<solutiondir>\.azure\code-coverage.runsettings" /testadapterpath:"C:\Users\<user>\.nuget\packages\coverlet.collector\3.1.0\build\netstandard1.0" <listofdlls>

This runs and produces a coverage XML file, but for certain modules the coverage results are zero. Note: for certain modules, not for all! Overall coverage is reported to be 15% whereas Visual Studio when asked says 80%. So why is it missing things?

I've inspected the diagnostics output and found a number of Hits file not found lines which seem to correspond with the modules for which the output is not being shown. That makes sense, but why is it not finding these files? For other modules it shows Hit file deleted, which is probably what you'd want to see? I searched the other diag files for hints which might explain why there are no hit files, but couldn't find any more leads. So I'm stuck now trying to find the root cause of this, any pointers where to look would be highly appreciated.

@jsiegmund
Copy link
Author

jsiegmund commented Jan 12, 2022

Added detail: the issue seems to come from processing multiple DLLs at once. When I pick one of the dlls which is producing 0 coverage and process that one as a single file, the results are good. Maybe I can pinpoint it to a specific project this way which might be causing issues, not sure.

Update: it doesn't seem to be related to a certain project being in the list, but rather the sequence of the projects. If I place one of the projects reporting zero at the top of the list, now suddenly the coverage is 100% again. Place it back down and coverage disappears. So there seems to be an issue with handing dotnet vstest a list of DLLs to check where maybe only the first one will report coverage and the rest don't. Not sure if it's only the first one, but I am sure that not all of them get covered at they should. I'm now updating our pipeline to run vstest for every single dll instead of the entire list. Wondering how the reporting after test will handle a multitude of output files.

Update 2: when I run the tests all seperately (dotnet vstest for a single dll) and then run the report tooling, results seem to be correct again. And the report tools merge the results properly. So this is a valid workaround for now, but it's 2-3x the time needed for a single run, so this blows up the time needed for CI builds in our PRs by quite a lot. So still looking how to properly fix this. Btw I also tried the same reverting to coverlet 1.3.0 (which we were using a while back) but that didn't make a difference.

@MarcoRossignoli MarcoRossignoli added the untriaged To be investigated label Jan 23, 2022
@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented Jan 23, 2022

Hi @jsiegmund,

first of all you're mixing the configuration for coverlet and MS CodeCoverage parameters, coverlet supports only these https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md#advanced-options-supported-via-runsettings

can you try with:

dotnet vstest C:\project\bin\Debug\netcoreapp3.0\publish\testdll.dll --collect:"XPlat Code Coverage" --settings coverlet.runsettings

With a correct runsettings.

PS: this param --collect:"XPlat Code Coverage" is fundamental, coverlet relies on out of process and in-process collectors, without that param the in-process one is not injected and so you can see sometimes empty report because VSTest plat kills host process before the flush of hits. In process data collector ensure the flush and VSTest plat will wait for it.

@MarcoRossignoli MarcoRossignoli added waiting for customer Waiting for customer action and removed untriaged To be investigated labels Jan 23, 2022
@jsiegmund
Copy link
Author

Thanks for your reply. I'm getting back to it but need to carve out some time to do so. I'll reply back here.

@jsiegmund
Copy link
Author

Sorry, here's a ping to let you know I did not forget but also didn't find the time to look into it. I'll report back asap.

@SeijiSuenaga
Copy link

Not sure if I'm seeing the exact same scenario, but I'm getting empty coverage results when passing a DLL like this:

dotnet test ./test/UnitTests/publish/UnitTests.dll --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura

Whereas I get actual coverage results when passing a csproj directory like this:

dotnet test ./test/UnitTests --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura

Oddly, this is happening in an Alpine Docker container, but outside the container on my Windows 10 host machine, both approaches work.

@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented Apr 8, 2022

@SeijiSuenaga I think that your scenario is different, the issue inside a docker is related to the fact that coverlet excludes dll if it's not able to locate the sources (you moved files inside a container and sources are no more available), we have an issue opened for that and we'll work on it. #1164

@olga-shtykova
Copy link

olga-shtykova commented May 12, 2022

I'm also having an issue with incomplete coverage. Sometimes coverlet produces a complete coverage and sometimes it returns 0%. How can this be fixed?
I'm using .NET Core. I use .NET Core Global Tool:
dotnet tool update --global coverlet.console --version 1.7.2
And I pass test project like this:
coverlet ./test/TMS.WalletService.Tests/bin/${BUILD_CONFIGURATION}/netcoreapp3.1/TMS.WalletService.Tests.dll
image

@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented May 12, 2022

@olga-shtykova if you're out of a docker maybe you should move if possible to the collector integration, msbuild and .NET tools suffer sometimes of a defect related to test platform behavior, if you take a look at the documentation we have a section for it(the fist one https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/KnownIssues.md). New test platform version was been shipped with some mitigation but I'm not sure if it was been released yet, which version of test SDK are you using (check inside the csproj).

@olga-shtykova
Copy link

@MarcoRossignoli Thank you for your answer, I've already looked through this section. I do use docker image: mcr.microsoft.com/dotnet/core/sdk:3.1 and the test project has both unit (xunit) and integration tests. I added coverlet.msbuild package and referenced it in the csproj file, as well as added /p:CollectCoverage=true to the test stage .gitlab-ci.yml dotnet build ${PROJECT_NAME}.sln -c ${BUILD_CONFIGURATION} /p:CopyLocalLockFileAssemblies=true /p:CollectCoverage=true. Am I missing something?

@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented May 13, 2022

You should try to use the datacollector integration https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md also inside the docker msbuild integration suffers of the issue described in the known issue doc.

@olga-shtykova
Copy link

I forgot to mention that I'm using Microsoft.NET.Test.Sdk" Version="17.0.0"
I will try to use datacollector integration as you suggested, thank you.

@olga-shtykova
Copy link

@MarcoRossignoli Using coverlect.collector instead of coverlet.msbuild, in .gitlab-ci.yml do I need to reference the same way /p:CollectCoverage=true or somehow else?
e.g., - dotnet build ${PROJECT_NAME}.sln -c ${BUILD_CONFIGURATION} /p:CopyLocalLockFileAssemblies=true /p:CollectCoverage=true

And can I use coverlet.console for report, e.g., - dotnet tool update --global coverlet.console --version 1.7.2?

@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented May 14, 2022

The collector works alone you can avoid the /p:CollectCoverage and also the .net tool you can use simply dotnet test.

Here you can find a full sample

https://github.com/coverlet-coverage/coverlet/tree/master/Documentation%2FExamples%2FVSTest%2FHelloWorld

You can pass a run settings with the same options available for the tool and /p: CollectCoverage, you can find it in the documentation I've pointed above

@olga-shtykova
Copy link

@MarcoRossignoli I appreciate your patience and willingness to help. I cannot find anything in the coverlet integration with VSTest documentation on how to visualize code coverage in gitlab CI. Maybe you can point me to the right direction?

@MarcoRossignoli
Copy link
Collaborator

Coverlet will generate a cobertura XML file with the coverage and the visualization depends on the tool you're using, if you're on gitlab I think this is the documentation https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html

Visualization of coverage is out of the scope of coverlet, let's say that we generare the file that should be used by some "visualizer", usually I generate report with reportgenerator tool, but also some CI systems do that like gitlab.

@whodurun4
Copy link

I'm experiencing similar behavior where I receive appropriate coverage reports on my development machine, but running in CI with an alpine-based image for a .net6.0 and coverlet collector.

Microsoft.NET.Test.Sdk 17.2.0
coverlet.collector 3.1.2

The cobertura file is generated, but only with empty sources and packages nodes.

@alexgalie
Copy link

alexgalie commented Jul 14, 2022

I have the same issue with an empty cobertura output when testing with a pre-built dll:

<?xml version="1.0" encoding="utf-8"?>
<coverage line-rate="1" branch-rate="1" version="1.9" timestamp="1657809866" lines-covered="0" lines-valid="0" branches-covered="0" branches-valid="0">
  <sources />
  <packages />
</coverage>

What I do:

  1. build the test project (with its dependencies) inside a container
  2. publish the test project
  3. copy the published output out of the container
  4. run dotnet test published-test-project.dll --settings some/path/CodeCoverage.runsettings on the host

I use these run settings:

<?xml version="1.0" encoding="utf-8"?>
<!-- File name extension must be .runsettings -->
<RunSettings>
  <DataCollectionRunSettings>
    <DataCollectors>
      <DataCollector friendlyName="XPlat code coverage">
        <Configuration>
          <Format>json,cobertura</Format>
          <Exclude>[coverlet.*.tests?]*,[*]Coverlet.Core*,[*test*]*</Exclude>
          <ExcludeByAttribute>Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute</ExcludeByAttribute>
          <!--<ExcludeByFile>**/dir1/class1.cs,**/dir2/*.cs,**/dir3/**/*.cs,</ExcludeByFile>-->
          <SingleHit>false</SingleHit>
          <SkipAutoProps>true</SkipAutoProps>
        </Configuration>
      </DataCollector>
    </DataCollectors>
  </DataCollectionRunSettings>
  <InProcDataCollectionRunSettings>
    <InProcDataCollectors>
      <InProcDataCollector assemblyQualifiedName="Coverlet.Collector.DataCollection.CoverletInProcDataCollector, coverlet.collector, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null"
                     friendlyName="XPlat Code Coverage"
                     enabled="True"
                     codebase="coverlet.collector.dll" />
    </InProcDataCollectors>
  </InProcDataCollectionRunSettings>
</RunSettings>

Microsoft.NET.Test.Sdk 17.1.0
coverlet.collector 3.1.2

I tried this on a dev machine and also in a container job on Azure DevOps, same result. Running against the .csproj file works properly.

@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented Jul 14, 2022

@alexgalie you should always pass dotnet test published-test-project.dll --collect "XPlat Code Coverage" --settings some/path/CodeCoverage.runsettings

and remove the <InProcDataCollector> element from the runsettings. I think you're not loading the in-proc one properly and so you're suffering of premature testhost process kill and coverlet is not able to flush hits on the disk.

@alexgalie
Copy link

@MarcoRossignoli thanks for the reply, after some experimentation I can confirm I have essentially reproduced @SeijiSuenaga 's issue above. The command line argument vs the <InProcDataCollector> element doesn't seem to make a difference.

The issue is the missing source files, which I have verified by copying the source files in the same path as where they were originally built. Only then the report is generated properly.

@MarcoRossignoli
Copy link
Collaborator

@alexgalie to verify if that is the prioblem we can produce and check the logs...the skip reason are logged there https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/Troubleshooting.md#collectors-integration and yes the symptom can be the same

@alexgalie
Copy link

@MarcoRossignoli I enabled the logging, below are a couple of fragments which are relevant from what I can think of.

The first one is from the main diag.txt file and leads me to believe that it is using the in-proc collector. Tried with and without the explicit --collect "XPlat Code Coverage" switch, same output.

TpTrace Verbose: 0 : 468, 4, 2022/07/18, 10:11:18.068, 1107481553838046, testhost.dll, [coverlet]Initialize CoverletInProcDataCollector
TpTrace Information: 0 : 468, 4, 2022/07/18, 10:11:18.132, 1107481617837511, testhost.dll, TestDiscoveryManager: Discovering tests from sources /__w/221/s/Services/ra-searchfolders-di/publishedtests/ra-searchfolders-di.Tests.dll

The second is the full output of diag.datacollector.22-07-18_10-11-17_37255_5.txt, where I don't see any clue of skipping anything (or missing any source files, for that matter). The test dll name is ra-searchfolders-di.Tests.dll:

TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.446, 1107480934159228, datacollector.dll, Version: 17.1.0-release-20220113-05
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.453, 1107480939367757, datacollector.dll, DataCollectorMain.Run: Starting data collector run with args: --port,36585,--parentprocessid,437,--diag,/__w/221/s/Services/ra-searchfolders-di/publishedtests/testresults/diag.datacollector.22-07-18_10-11-17_37255_5.txt,--tracelevel,4
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.454, 1107480939635645, datacollector.dll, DataCollector: Monitoring parent process with id: '437'
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.458, 1107480944582881, datacollector.dll, Trying to connect to server on socket : 127.0.0.1:36585 
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.466, 1107480952560838, datacollector.dll, SocketCommunicationManager : SetupClientAsync : Attempting to connect to the server.
TpTrace Information: 0 : 450, 6, 2022/07/18, 10:11:17.476, 1107480961948412, datacollector.dll, Connected to the server successfully 
TpTrace Information: 0 : 450, 6, 2022/07/18, 10:11:17.476, 1107480962041478, datacollector.dll, Using the buffer size of 16384 bytes
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.556, 1107481042067941, datacollector.dll, DataCollector: Start Request Processing.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.560, 1107481045853811, datacollector.dll, DataCollectionRequestHandler.ProcessRequests : Datacollector received message: (DataCollection.BeforeTestRunStart) -> {
  "SettingsXml": "<RunSettings><DataCollectionRunSettings><DataCollectors><DataCollector friendlyName=\"XPlat code coverage\"><Configuration><Format>json,cobertura</Format><Exclude>[coverlet.*.tests?]*,[*]Coverlet.Core*,[*test*]*</Exclude><ExcludeByAttribute>Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute</ExcludeByAttribute><SingleHit>false</SingleHit><SkipAutoProps>true</SkipAutoProps></Configuration></DataCollector></DataCollectors></DataCollectionRunSettings><InProcDataCollectionRunSettings><InProcDataCollectors><InProcDataCollector assemblyQualifiedName=\"Coverlet.Collector.DataCollection.CoverletInProcDataCollector, coverlet.collector, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null\" friendlyName=\"XPlat Code Coverage\" enabled=\"True\" codebase=\"coverlet.collector.dll\" /></InProcDataCollectors></InProcDataCollectionRunSettings><RunSettingsDirectory>/__w/221/s/Services/ra-searchfolders-di</RunSettingsDirectory><RunConfiguration><ResultsDirectory>/__w/221/s/Services/ra-searchfolders-di/publishedtests/testresults</ResultsDirectory><TargetPlatform>X64</TargetPlatform><TargetFrameworkVersion>.NETCoreApp,Version=v6.0</TargetFrameworkVersion><DesignMode>False</DesignMode><CollectSourceInformation>False</CollectSourceInformation><TestAdaptersPaths>/usr/share/dotnet/sdk/6.0.201/Extensions</TestAdaptersPaths></RunConfiguration><LoggerRunSettings><Loggers><Logger friendlyName=\"trx\" enabled=\"True\"><Configuration><LogFileName>TESTRESULT.xml</LogFileName></Configuration></Logger><Logger friendlyName=\"Console\" uri=\"logger://microsoft/TestPlatform/ConsoleLogger/v1\" assemblyQualifiedName=\"Microsoft.VisualStudio.TestPlatform.CommandLine.Internal.ConsoleLogger, vstest.console, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\" codeBase=\"/usr/share/dotnet/sdk/6.0.201/vstest.console.dll\" enabled=\"True\" /></Loggers></LoggerRunSettings></RunSettings>",
  "Sources": [
    "/__w/221/s/Services/ra-searchfolders-di/publishedtests/ra-searchfolders-di.Tests.dll"
  ],
  "IsTelemetryOptedIn": false
}
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.593, 1107481079497501, datacollector.dll, TestPluginCache: Update extensions started. Skip filter = False
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.594, 1107481080206459, datacollector.dll, TestPluginCache: Using directories for assembly resolution '/__w/221/s/Services/ra-searchfolders-di/publishedtests,/usr/share/dotnet/sdk/6.0.201/Extensions'.
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.594, 1107481080300184, datacollector.dll, TestPluginCache: Updated the available extensions to '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.TraceDataCollector.dll,/__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.collector.dll,/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.BlameDataCollector.dll,/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.EventLogCollector.dll'.
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.601, 1107481087072815, datacollector.dll, TestPluginCache.DiscoverTestExtensions: finding test extensions in assemblies ends with: Collector.dll TPluginInfo: Microsoft.VisualStudio.TestPlatform.Common.DataCollector.DataCollectorConfig TExtension: Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection.DataCollector
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.601, 1107481087252861, datacollector.dll, TestPluginCache.GetExtensionPaths: Filtered extension paths: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.TraceDataCollector.dll
/__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.collector.dll
/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.BlameDataCollector.dll
/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.EventLogCollector.dll
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.601, 1107481087301188, datacollector.dll, TestPluginCache.GetExtensionPaths: Added default extension paths: 
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.601, 1107481087325446, datacollector.dll, TestPluginCache.GetExtensionPaths: Added unfilterableExtensionPaths: 
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.602, 1107481087810077, datacollector.dll, AssemblyResolver.ctor: Creating AssemblyResolver with searchDirectories /__w/221/s/Services/ra-searchfolders-di/publishedtests,/usr/share/dotnet/sdk/6.0.201/Extensions,/usr/share/dotnet/sdk/6.0.201
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481088696365, datacollector.dll, TestPluginCache.DiscoverTestExtensions: Discovering the extensions using extension path.
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481088858959, datacollector.dll, TestPluginCache.GetExtensionPaths: Filtered extension paths: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.TraceDataCollector.dll
/__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.collector.dll
/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.BlameDataCollector.dll
/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.EventLogCollector.dll
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481088898197, datacollector.dll, TestPluginCache.GetExtensionPaths: Added default extension paths: 
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481088921290, datacollector.dll, TestPluginCache.GetExtensionPaths: Added unfilterableExtensionPaths: 
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481088969392, datacollector.dll, TestPluginCache.DiscoverTestExtensions: Discovering the extensions using allExtensionPaths: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.TraceDataCollector.dll
/__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.collector.dll
/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.BlameDataCollector.dll
/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.EventLogCollector.dll
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481089074490, datacollector.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories /__w/221/s/Services/ra-searchfolders-di/publishedtests,/usr/share/dotnet/sdk/6.0.201
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481089123952, datacollector.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories /__w/221/s/Services/ra-searchfolders-di/publishedtests,/usr/share/dotnet/sdk/6.0.201
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481089151753, datacollector.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories /usr/share/dotnet/sdk/6.0.201/Extensions,/usr/share/dotnet/sdk/6.0.201
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481089198841, datacollector.dll, AssemblyResolver.AddSearchDirectories: Adding more searchDirectories /usr/share/dotnet/sdk/6.0.201/Extensions,/usr/share/dotnet/sdk/6.0.201
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.603, 1107481089593595, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TraceDataCollector: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.604, 1107481089669423, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TraceDataCollector: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.604, 1107481089944568, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.TraceDataCollector: Loading assembly '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.TraceDataCollector.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.604, 1107481090182849, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.VisualStudio.TraceDataCollector, from path: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.TraceDataCollector.dll
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.605, 1107481091188977, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.Coverage.Interprocess: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.605, 1107481091266862, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.Coverage.Interprocess: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.605, 1107481091391920, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.Coverage.Interprocess: Loading assembly '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.Coverage.Interprocess.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.605, 1107481091543406, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.VisualStudio.Coverage.Interprocess, from path: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.Coverage.Interprocess.dll
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.606, 1107481091943487, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.Coverage.Core: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.606, 1107481091993770, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.Coverage.Core: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.606, 1107481092131973, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.VisualStudio.Coverage.Core: Loading assembly '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.Coverage.Core.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.606, 1107481092338063, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.VisualStudio.Coverage.Core, from path: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.Coverage.Core.dll
TpTrace Error: 0 : 450, 1, 2022/07/18, 10:11:17.607, 1107481093134086, datacollector.dll, The type "Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector" defined in "Microsoft.VisualStudio.TraceDataCollector.dll" does not have ExtensionUri attribute.
TpTrace Error: 0 : 450, 1, 2022/07/18, 10:11:17.608, 1107481094158254, datacollector.dll, The type "Microsoft.VisualStudio.Coverage.DynamicCoverage21DataCollector" defined in "Microsoft.VisualStudio.TraceDataCollector.dll" does not have ExtensionUri attribute.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.608, 1107481094355052, datacollector.dll, AssemblyResolver.OnResolve: coverlet.collector: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.608, 1107481094414535, datacollector.dll, AssemblyResolver.OnResolve: coverlet.collector: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.608, 1107481094520678, datacollector.dll, AssemblyResolver.OnResolve: coverlet.collector: Loading assembly '/__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.collector.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.609, 1107481094661523, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: coverlet.collector, from path: /__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.collector.dll
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.609, 1107481095080804, datacollector.dll, AssemblyResolver.OnResolve: coverlet.core: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.609, 1107481095140386, datacollector.dll, AssemblyResolver.OnResolve: coverlet.core: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.609, 1107481095245767, datacollector.dll, AssemblyResolver.OnResolve: coverlet.core: Loading assembly '/__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.core.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.609, 1107481095417189, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: coverlet.core, from path: /__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.core.dll
TpTrace Error: 0 : 450, 1, 2022/07/18, 10:11:17.610, 1107481095784642, datacollector.dll, The type "Coverlet.Collector.DataCollection.CoverletCoverageCollector" defined in "coverlet.collector.dll" does not have ExtensionUri attribute.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.610, 1107481095904309, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.BlameDataCollector: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.610, 1107481095944389, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.BlameDataCollector: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.610, 1107481095982135, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.BlameDataCollector: Assembly path does not exist: '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.TestPlatform.Extensions.BlameDataCollector.dll', returning.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.610, 1107481096055928, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.BlameDataCollector: Assembly path does not exist: '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.TestPlatform.Extensions.BlameDataCollector.exe', returning.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.610, 1107481096080790, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.BlameDataCollector: Searching in: '/usr/share/dotnet/sdk/6.0.201/Extensions'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.610, 1107481096196624, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.BlameDataCollector: Loading assembly '/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.BlameDataCollector.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.610, 1107481096391685, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.TestPlatform.Extensions.BlameDataCollector, from path: /usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.BlameDataCollector.dll
TpTrace Error: 0 : 450, 1, 2022/07/18, 10:11:17.611, 1107481096869611, datacollector.dll, The type "Microsoft.TestPlatform.Extensions.BlameDataCollector.BlameCollector" defined in "Microsoft.TestPlatform.Extensions.BlameDataCollector.dll" does not have ExtensionUri attribute.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.611, 1107481096997395, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.EventLogCollector: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.611, 1107481097088301, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.EventLogCollector: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.611, 1107481097128857, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.EventLogCollector: Assembly path does not exist: '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.TestPlatform.Extensions.EventLogCollector.dll', returning.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.611, 1107481097170027, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.EventLogCollector: Assembly path does not exist: '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.TestPlatform.Extensions.EventLogCollector.exe', returning.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.611, 1107481097200758, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.EventLogCollector: Searching in: '/usr/share/dotnet/sdk/6.0.201/Extensions'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.611, 1107481097308961, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.TestPlatform.Extensions.EventLogCollector: Loading assembly '/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.EventLogCollector.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.611, 1107481097447687, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.TestPlatform.Extensions.EventLogCollector, from path: /usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.EventLogCollector.dll
TpTrace Error: 0 : 450, 1, 2022/07/18, 10:11:17.612, 1107481098427906, datacollector.dll, The type "Microsoft.TestPlatform.Extensions.EventLogCollector.EventLogDataCollector" defined in "Microsoft.TestPlatform.Extensions.EventLogCollector.dll" does not have ExtensionUri attribute.
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.613, 1107481098710666, datacollector.dll, TestPluginCache: Discovered the extensions using extension path '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.VisualStudio.TraceDataCollector.dll,/__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.collector.dll,/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.BlameDataCollector.dll,/usr/share/dotnet/sdk/6.0.201/Extensions/Microsoft.TestPlatform.Extensions.EventLogCollector.dll'.
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.613, 1107481098770742, datacollector.dll, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.613, 1107481098795541, datacollector.dll, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.613, 1107481098817519, datacollector.dll, TestPluginCache: Executors2 are ''.
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.613, 1107481098839789, datacollector.dll, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.613, 1107481098859752, datacollector.dll, TestPluginCache: Loggers are ''.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.614, 1107481100037628, datacollector.dll, TestPluginManager.CreateTestExtension: Attempting to load test extension: Coverlet.Collector.DataCollection.CoverletCoverageCollector
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.614, 1107481100156237, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyInjection.Abstractions: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.614, 1107481100202271, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyInjection.Abstractions: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.614, 1107481100320572, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyInjection.Abstractions: Loading assembly '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.Extensions.DependencyInjection.Abstractions.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.614, 1107481100464017, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.Extensions.DependencyInjection.Abstractions, from path: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.Extensions.DependencyInjection.Abstractions.dll
TpTrace Error: 0 : 450, 1, 2022/07/18, 10:11:17.615, 1107481100875845, datacollector.dll, The type "Coverlet.Collector.DataCollection.CoverletCoverageCollector" defined in "coverlet.collector.dll" does not have ExtensionUri attribute.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.618, 1107481103651176, datacollector.dll, [coverlet]Initializing CoverletCoverageDataCollector with configuration: '<Configuration><Format>json,cobertura</Format><Exclude>[coverlet.*.tests?]*,[*]Coverlet.Core*,[*test*]*</Exclude><ExcludeByAttribute>Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute</ExcludeByAttribute><SingleHit>false</SingleHit><SkipAutoProps>true</SkipAutoProps><Framework>.NETCoreApp,Version=v6.0</Framework></Configuration>'
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.618, 1107481104573062, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyInjection: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.619, 1107481104645187, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyInjection: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.619, 1107481104764440, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.DependencyInjection: Loading assembly '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.Extensions.DependencyInjection.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.619, 1107481104931413, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.Extensions.DependencyInjection, from path: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.Extensions.DependencyInjection.dll
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.619, 1107481105417707, datacollector.dll, [coverlet]CoverletCoverageDataCollector: SessionStart received
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.620, 1107481105735434, datacollector.dll, [coverlet]CoverletCoverageDataCollector: TestModules: '/__w/221/s/Services/ra-searchfolders-di/publishedtests/ra-searchfolders-di.Tests.dll'
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.622, 1107481108193043, datacollector.dll, [coverlet]CoverletCoverageDataCollector: Initializing coverlet process with settings: "TestModule: '/__w/221/s/Services/ra-searchfolders-di/publishedtests/ra-searchfolders-di.Tests.dll', IncludeFilters: '', IncludeDirectories: '', ExcludeFilters: '[coverlet.*]*,[coverlet.*.tests?]*,[*]Coverlet.Core*,[*test*]*', ExcludeSourceFiles: '', ExcludeAttributes: 'Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute', MergeWith: '', UseSourceLink: 'False'SingleHit: 'False'IncludeTestAssembly: 'False'SkipAutoProps: 'True'DoesNotReturnAttributes: ''"
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.656, 1107481142596919, datacollector.dll, [coverlet]Excluded module filter '[coverlet.*]*'
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.657, 1107481142721186, datacollector.dll, [coverlet]Excluded module filter '[coverlet.*.tests?]*'
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.657, 1107481142748787, datacollector.dll, [coverlet]Excluded module filter '[*]Coverlet.Core*'
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.657, 1107481142768918, datacollector.dll, [coverlet]Excluded module filter '[*test*]*'
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.664, 1107481150080914, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.FileSystemGlobbing: Resolving assembly.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.664, 1107481150186732, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.FileSystemGlobbing: Searching in: '/__w/221/s/Services/ra-searchfolders-di/publishedtests'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.664, 1107481150304378, datacollector.dll, AssemblyResolver.OnResolve: Microsoft.Extensions.FileSystemGlobbing: Loading assembly '/__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.Extensions.FileSystemGlobbing.dll'.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.664, 1107481150475545, datacollector.dll, AssemblyResolver.OnResolve: Resolved assembly: Microsoft.Extensions.FileSystemGlobbing, from path: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Microsoft.Extensions.FileSystemGlobbing.dll
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.685, 1107481171384578, datacollector.dll, [coverlet]Unable to instrument module: /__w/221/s/Services/ra-searchfolders-di/publishedtests/Moq.dll, embedded pdb without local source files, [C:\projects\moq4\src\Moq\ActionObserver.cs]
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.689, 1107481174939782, datacollector.dll, [coverlet]Excluded module: '/__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.collector.dll'
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.689, 1107481175053469, datacollector.dll, [coverlet]Excluded module: '/__w/221/s/Services/ra-searchfolders-di/publishedtests/coverlet.core.dll'
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:17.689, 1107481175225650, datacollector.dll, [coverlet]Excluded module: '/__w/221/s/Services/ra-searchfolders-di/publishedtests/testhost.dll'
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.694, 1107481179657461, datacollector.dll, DataCollectionRequestHandler.ProcessRequests : DataCollection started.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:17.712, 1107481198111006, datacollector.dll, DataCollectionRequestHandler.ProcessRequests : Datacollector received message: (DataCollection.TestHostLaunched) -> {
  "ProcessId": 468
}
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:27.881, 1107491367135471, datacollector.dll, DataCollectionRequestHandler.ProcessRequests : Datacollector received message: (DataCollection.AfterTestRunEnd) -> false
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:27.883, 1107491368995115, datacollector.dll, [coverlet]CoverletCoverageDataCollector: SessionEnd received
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:27.924, 1107491410567178, datacollector.dll, [coverlet]CoverletCoverageDataCollector: Saved coverage report to path: '/tmp/ec81c1f6-0666-436e-9562-10aeb2859c09/coverage.json'
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:27.925, 1107491410846781, datacollector.dll, [coverlet]CoverletCoverageDataCollector: Sending attachment to test platform
TpTrace Information: 0 : 450, 4, 2022/07/18, 10:11:27.926, 1107491411642562, datacollector.dll, DataCollectionAttachmentManager.AddNewFileTransfer : Copying file /tmp/ec81c1f6-0666-436e-9562-10aeb2859c09/coverage.json to /__w/221/s/Services/ra-searchfolders-di/publishedtests/testresults/b5b29d06-d652-4ab2-b1bb-1ea6768a3430/coverage.json
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:27.926, 1107491411866089, datacollector.dll, [coverlet]CoverletCoverageDataCollector: Saved coverage report to path: '/tmp/ec81c1f6-0666-436e-9562-10aeb2859c09/coverage.cobertura.xml'
TpTrace Information: 0 : 450, 4, 2022/07/18, 10:11:27.926, 1107491411905333, datacollector.dll, DataCollectionAttachmentManager.AddNewFileTransfer : Copied file /tmp/ec81c1f6-0666-436e-9562-10aeb2859c09/coverage.json to /__w/221/s/Services/ra-searchfolders-di/publishedtests/testresults/b5b29d06-d652-4ab2-b1bb-1ea6768a3430/coverage.json
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:27.926, 1107491411980353, datacollector.dll, [coverlet]CoverletCoverageDataCollector: Sending attachment to test platform
TpTrace Information: 0 : 450, 6, 2022/07/18, 10:11:27.926, 1107491412481791, datacollector.dll, DataCollectionAttachmentManager.AddNewFileTransfer : Copying file /tmp/ec81c1f6-0666-436e-9562-10aeb2859c09/coverage.cobertura.xml to /__w/221/s/Services/ra-searchfolders-di/publishedtests/testresults/b5b29d06-d652-4ab2-b1bb-1ea6768a3430/coverage.cobertura.xml
TpTrace Information: 0 : 450, 6, 2022/07/18, 10:11:27.927, 1107491412658198, datacollector.dll, DataCollectionAttachmentManager.AddNewFileTransfer : Copied file /tmp/ec81c1f6-0666-436e-9562-10aeb2859c09/coverage.cobertura.xml to /__w/221/s/Services/ra-searchfolders-di/publishedtests/testresults/b5b29d06-d652-4ab2-b1bb-1ea6768a3430/coverage.cobertura.xml
TpTrace Verbose: 0 : 450, 4, 2022/07/18, 10:11:27.927, 1107491413522886, datacollector.dll, [coverlet]CoverletCoverageDataCollector: SendFileCompleted received
TpTrace Verbose: 0 : 450, 6, 2022/07/18, 10:11:27.927, 1107491413527936, datacollector.dll, [coverlet]CoverletCoverageDataCollector: SendFileCompleted received
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:27.928, 1107491414273863, datacollector.dll, [coverlet]CoverletCoverageDataCollector: Deleted report directory: '/tmp/ec81c1f6-0666-436e-9562-10aeb2859c09'
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:27.928, 1107491414572038, datacollector.dll, Test Attachment Description: Collector:'XPlat code coverage'  Uri:'datacollector://microsoft/CoverletCodeCoverage/1.0'  Description:'' Uri:'file:///__w/221/s/Services/ra-searchfolders-di/publishedtests/testresults/b5b29d06-d652-4ab2-b1bb-1ea6768a3430/coverage.json' 
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:27.929, 1107491414623653, datacollector.dll, Test Attachment Description: Collector:'XPlat code coverage'  Uri:'datacollector://microsoft/CoverletCodeCoverage/1.0'  Description:'' Uri:'file:///__w/221/s/Services/ra-searchfolders-di/publishedtests/testresults/b5b29d06-d652-4ab2-b1bb-1ea6768a3430/coverage.cobertura.xml' 
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:27.929, 1107491414741530, datacollector.dll, DataCollectionManager.CleanupPlugins: CleanupPlugins called
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:27.929, 1107491414773537, datacollector.dll, DataCollectionManager.CleanupPlugins: Cleaning up 1 plugins
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:27.929, 1107491414851445, datacollector.dll, dataCollectorInfo.DisposeDataCollector: calling Dispose() on Coverlet.Collector.DataCollection.CoverletCoverageCollector
TpTrace Verbose: 0 : 450, 1, 2022/07/18, 10:11:27.929, 1107491415059440, datacollector.dll, [coverlet]CoverletCoverageDataCollector: Disposing
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:27.929, 1107491415154700, datacollector.dll, DataCollectionManager.CleanupPlugins: CleanupPlugins finished
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:27.935, 1107491421601765, datacollector.dll, DataCollectionRequestHandler.ProcessRequests : Session End message received from server. Closing the connection.
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:27.942, 1107491428479440, datacollector.dll, Closing the connection !
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:27.942, 1107491428559244, datacollector.dll, DataCollectionRequestHandler.ProcessRequests : DataCollection completed
TpTrace Information: 0 : 450, 1, 2022/07/18, 10:11:27.942, 1107491428586177, datacollector.dll, Program.Main: exiting datacollector process.

I am not including the actual test run because it is quite verbose and may contain some sensitive data.

@MarcoRossignoli
Copy link
Collaborator

Do you see some comment like Calling ModuleTrackerTemplate.UnloadModule for is your datacollector log?
Test dll is not included by default in coverage, as an information, I mean if you want to see result from test container.

@alexgalie
Copy link

No I do not have this in any of the logs

andrei-epure-sonarsource added a commit to SonarSource/sonar-dotnet that referenced this issue Jul 20, 2022
- Update VSTest to minimum supported version
- Use the coverlet connector

Due to known issues, the datacollector integration is suggested

See coverlet-coverage/coverlet#1278 (comment)
And https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md

<!-- Minimum version 16.5.0 -->
andrei-epure-sonarsource added a commit to SonarSource/sonar-dotnet that referenced this issue Jul 22, 2022
- Update VSTest to minimum supported version
- Use the coverlet connector

Due to known issues, the datacollector integration is suggested

See coverlet-coverage/coverlet#1278 (comment)
And https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md

<!-- Minimum version 16.5.0 -->
andrei-epure-sonarsource added a commit to SonarSource/sonar-dotnet that referenced this issue Jul 25, 2022
- Update VSTest to minimum supported version
- Use the coverlet connector

Due to known issues, the datacollector integration is suggested

See coverlet-coverage/coverlet#1278 (comment)
And https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md

<!-- Minimum version 16.5.0 -->
andrei-epure-sonarsource added a commit to SonarSource/sonar-dotnet that referenced this issue Jul 27, 2022
- Update VSTest to minimum supported version
- Use the coverlet connector

Due to known issues, the datacollector integration is suggested

See coverlet-coverage/coverlet#1278 (comment)
And https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md

<!-- Minimum version 16.5.0 -->
andrei-epure-sonarsource added a commit to SonarSource/sonar-dotnet that referenced this issue Jul 27, 2022
- Update VSTest to minimum supported version
- Use the coverlet connector

Due to known issues, the datacollector integration is suggested

See coverlet-coverage/coverlet#1278 (comment)
And https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md

<!-- Minimum version 16.5.0 -->
@github-actions
Copy link

github-actions bot commented Sep 4, 2023

This issue is stale because it has been open for 3 months with no activity.

@github-actions github-actions bot added the stale label Sep 4, 2023
@sloncho
Copy link

sloncho commented Dec 17, 2023

If I understand this correctly - the source files are needed for coverlet to work. I'm trying to use only build artifacts (produced w/ dotnet publish) from one azure pipeline job, and use them to produce coverage result in another job (s). I need to parallelize, as some of the tests are really heavy (integration) and take a lot of time to execute.

Building each test project in individual jobs is an option, but as the builds are heavy as well, skipping them is a good idea.

So, is there any supported scenario, in which coverage result can be collected, using pre-build binaries, and eventually the source files. I.e. in pseudocode: dotnet test prebuilds/mytestproj.dll --collect:"XPlat Code Coverage" when the sources are not present. I read about #1164, and wondering if there is a way to specifically include my dlls.

@github-actions github-actions bot removed the stale label Dec 24, 2023
@Bertk Bertk added the question This issue is a question label Feb 13, 2024
Copy link

This issue is stale because it has been open for 3 months with no activity.

@github-actions github-actions bot added the stale label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue is a question stale waiting for customer Waiting for customer action
Projects
None yet
Development

No branches or pull requests

8 participants