Microsoft.CodeCoverage 18.10.1
Microsoft.CodeCoverage
Code coverage infrastructure for the Visual Studio Test Platform. This package enables collecting code coverage data from vstest.console.exe and dotnet test.
Usage
This package is typically referenced indirectly through Microsoft.NET.Test.Sdk. For standalone usage:
<PackageReference Include="Microsoft.CodeCoverage" Version="x.y.z" />
Collect code coverage during a test run:
dotnet test --collect "Code Coverage"
Published tests
dotnet publish places the collector, tools, and their private dependencies in the
Microsoft.CodeCoverage subdirectory. Deploy the entire publish directory. VSTest's
data collector host searches the test assembly's directory and its subdirectories,
so it discovers the collector without a project or NuGet cache:
dotnet vstest publish/Tests.dll --collect:"Code Coverage"
For runners that require an explicit extension path, pass
--TestAdapterPath:publish/Microsoft.CodeCoverage. Normal dotnet test runs continue
to use the collector from the package directory.
When upgrading from a package that copied coverage files into the publish root, delete the old publish directory before publishing again. Old private dependencies in that directory cannot safely be distinguished from application files.
Links
Showing the top 20 packages that depend on Microsoft.CodeCoverage.
| Packages | Downloads |
|---|---|
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
36 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
37 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
38 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
39 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
40 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
41 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
46 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
47 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
|
50 |
|
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building the .Net core test projects.
|
36 |