Skip to content

Commit 6559744

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents b001699 + f43d76e commit 6559744

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

docs/test/microsoft-code-coverage-console-tool.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Microsoft.CodeCoverage.Console tool
33
description: Use the Microsoft.CodeCoverage.Console tool to collect code coverage for C++ and C# code in nontest scenarios, and merge and convert code coverage reports.
4-
ms.date: 09/16/2024
4+
ms.date: 01/28/2025
55
ms.topic: conceptual
66
ms.author: mikejo
77
manager: mijacobs
@@ -11,15 +11,21 @@ monikerRange: '>= vs-2022'
1111
---
1212
# Microsoft.CodeCoverage.Console tool
1313

14-
Microsoft.CodeCoverage.Console is a command-line tool. You can use it to collect code coverage for C++ and C# code. It supports also merging and converting code coverage reports. This tool can be used to collect code coverage in non-test scenarios (for example, for a simple console application).
14+
Microsoft.CodeCoverage.Console is a command-line tool that you can use to collect code coverage for C++ and C# code. It also supports merging and converting code coverage reports. This tool can be used to collect code coverage in non-test scenarios (for example, for a simple console application).
1515

16-
Microsoft.CodeCoverage.Console is available in Visual Studio 2022 17.3 under the folder `Common7\IDE\Extensions\Microsoft\CodeCoverage.Console`. You can use it in a Developer Command Prompt and a Developer PowerShell:
16+
This tool is an extension to the [dotnet-coverage](/dotnet/core/additional-tools/dotnet-coverage) dotnet tool that adds support for the following scenarios:
17+
18+
- Adds security features to enable collecting ASP.NET code coverage data from IIS.
19+
- Collecting code coverage for C++ code.
1720

1821
>[!NOTE]
1922
> The tool is available only with Visual Studio Enterprise. For .NET code coverage, you can alternatively use the command-line tool, [dotnet-coverage](/dotnet/core/additional-tools/dotnet-coverage).
2023
24+
Microsoft.CodeCoverage.Console is available in Visual Studio 2022 17.3 under the folder `Common7\IDE\Extensions\Microsoft\CodeCoverage.Console`. You can use it in a Developer Command Prompt and a Developer PowerShell:
25+
2126
```console
22-
C:\Program Files\Microsoft Visual Studio\2022\Enterprise> Microsoft.CodeCoverage.Console --help
27+
D:\ConsoleApplication\x64\Debug>Microsoft.CodeCoverage.Console --help
28+
2329
Description:
2430
Code coverage tools.
2531

@@ -43,7 +49,7 @@ Commands:
4349

4450
## Collect, connect, shutdown, merge, snapshot, and uninstrument commands
4551

46-
The Microsoft.CodeCoverage.Console tool is extension to the [dotnet-coverage](/dotnet/core/additional-tools/dotnet-coverage) dotnet tool. The documentation for collect, connect, shutdown, merge, snapshot, and uninstrument commands can be found [here](/dotnet/core/additional-tools/dotnet-coverage).
52+
The Microsoft.CodeCoverage.Console tool is an extension to the [dotnet-coverage](/dotnet/core/additional-tools/dotnet-coverage) dotnet tool. The documentation for collect, connect, shutdown, merge, snapshot, and uninstrument commands can be found [here](/dotnet/core/additional-tools/dotnet-coverage).
4753

4854
Microsoft.CodeCoverage.Console supports additional security features to enable collecting ASP.NET code coverage data from IIS. Additionally, the Microsoft.CodeCoverage.Console tool supports collecting code coverage for C++ code. The `instrument` command is specific to these scenarios.
4955

@@ -73,7 +79,7 @@ Microsoft.CodeCoverage.Console instrument
7379

7480
* **`-s|--settings <settings>`**
7581

76-
Sets the path to the XML code coverage settings.
82+
Sets the path to the XML code coverage settings. The settings file can be used to exclude some modules or methods from code coverage analysis. The format is the same as the data collector configuration inside a *.runsettings* file. For more information, see [Customize code coverage analysis](../test/customizing-code-coverage-analysis.md).
7783

7884
* **`-id|--session-id <session-id>`**
7985

@@ -108,7 +114,7 @@ D:\ConsoleApplication\x64\Debug> .\ConsoleApplication.exe
108114
Hello World!
109115
```
110116

111-
### Code coverage using collect command with configuration file
117+
### Code coverage using collect command with configuration file (C++)
112118

113119
If you don't want to use the `instrument` command, you can instead use a configuration file to specify the files to instrument, as follows:
114120

@@ -129,7 +135,9 @@ Hello World!
129135
Code coverage results: output.coverage.
130136
```
131137

132-
### Code coverage using instrument and collect commands
138+
The settings file can be used to exclude some modules or methods from code coverage analysis. The format is the same as the data collector configuration inside a *.runsettings* file. For more information, see [Customize code coverage analysis](../test/customizing-code-coverage-analysis.md).
139+
140+
### Code coverage using instrument and collect commands (C++)
133141

134142
Before collecting code coverage data, first instrument the binary as follows:
135143

@@ -147,7 +155,7 @@ Hello World!
147155
Code coverage results: output.coverage.
148156
```
149157

150-
### Code coverage using instrument command and collect command in server mode
158+
### Code coverage using instrument command and collect command in server mode (C++)
151159

152160
Using this method, you can separate code coverage collection from running your application. First, instrument your binary as follows:
153161

subscriptions/assign-license-bulk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To add large groups of users, you can use the bulk add feature, or if your organ
1616

1717
## Use Bulk add to assign subscriptions
1818

19-
> [!VIDEO https://medius.microsoft.com/Embed/video-nc/6e8cd58e-548b-4019-9b36-ec6462c0666b?r=499726314265]
19+
> [!VIDEO https://medius.microsoft.com/Embed/video-nc/3bf6504c-8d82-4466-b6fb-93d46fdf9b17?r=553875033020]
2020
2121
## Follow these steps to use the Bulk add feature:
2222

@@ -91,7 +91,7 @@ Using this feature makes it easy to stay on top of your subscription assignments
9191

9292
## Watch this video or read on to learn more about adding subscribers using the Microsoft Entra group feature.
9393

94-
> [!VIDEO https://medius.microsoft.com/Embed/video-nc/3bf6504c-8d82-4466-b6fb-93d46fdf9b17?r=553875033020]
94+
> [!VIDEO https://medius.microsoft.com/Embed/video-nc/6e8cd58e-548b-4019-9b36-ec6462c0666b?r=499726314265]
9595
9696
1. Sign in to the Visual Studio Subscriptions Admin Portal at [https://manage.visualstudio.com](https://manage.visualstudio.com).
9797

0 commit comments

Comments
 (0)