

The tool is extension to the dotnet-coverage dotnet tool. Snapshot Creates coverage file for existing code coverage collection.Ĭollect, connect, shutdown, merge and snapshot commands Shutdown Close existing code coverage collection. ?, -h, -help Show help and usage informationĬollect Collect code coverage from inner process and subprocesses.Ĭonnect Connects to an existing code coverage session and collects code coverage from

You can use it in a Developer Command Prompt and a Developer PowerShell: C:\Program Files\Microsoft Visual Studio\2022\Enterprise> -help is available in Visual Studio 2022 17.3 under folder Common7\IDE\Extensions\Microsoft\CodeCoverage.Console. This tool can be used to collect code coverage in non-test scenarios (for example, for a simple console application).

It supports also merging and converting code coverage reports. You can use it to collect code coverage for C++ and C# code. Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
