You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sets the log level. Supported values: `Error`, `Info`, and `Verbose`.
102
105
106
+
***`-dco|--disable-console-output`**
107
+
108
+
Disables console output.
109
+
110
+
***`--nologo`**
111
+
112
+
Do not display Code Coverage banner.
113
+
103
114
## dotnet-coverage collect
104
115
105
116
The `collect` command is used to collect code coverage data for any .NET process and its subprocesses. For example, you can collect code coverage data for a console application or a Blazor application. This command supports dynamic and static instrumentation. Static instrumentation is available on all platforms. You can specify files to be statically instrumented using `include-files` option. Dynamic instrumentation is available on Windows (x86, x64 and Arm64), Linux (x64), and macOS (x64). The command supports only .NET modules. Native modules are not supported.
@@ -114,11 +125,12 @@ The `collect` command will collect code coverage for the given process executed
Sets the log level. Supported values: `Error`, `Info`, and `Verbose`.
188
201
202
+
***`-dco|--disable-console-output`**
203
+
204
+
Disables console output.
205
+
206
+
***`--nologo`**
207
+
208
+
Do not display Code Coverage banner.
209
+
189
210
## dotnet-coverage connect
190
211
191
212
The `connect` command is used to connect with the existing server and collects code coverage data for any .NET process and its subprocesses. For example, you can collect code coverage data for a console application or a Blazor application. The command supports only .NET modules. Native modules are not supported.
@@ -197,10 +218,11 @@ The `connect` command is used to connect with the existing server and collects c
Copy file name to clipboardExpand all lines: docs/core/testing/unit-testing-platform-extensions-code-coverage.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,6 @@ This article list and explains all `Microsoft Testing Platform` extensions relat
12
12
13
13
You can use the code coverage feature to determine what proportion of your project's code is being tested by coded tests such as unit tests. To effectively guard against bugs, your tests should exercise or *cover* a large proportion of your code.
14
14
15
-
## Coverlet
16
-
17
-
There's currently no Coverlet extension, but you can use [Coverlet .NET global tool](https://github.com/coverlet-coverage/coverlet#net-global-tool-guide-suffers-from-possible-known-issue).
18
-
19
15
## Microsoft code coverage
20
16
21
17
Microsoft Code Coverage analysis is possible for both managed (CLR) and unmanaged (native) code. Both static and dynamic instrumentation are supported. This extension is shipped as part of [Microsoft.Testing.Extensions.CodeCoverage](https://nuget.org/packages/Microsoft.Testing.Extensions.CodeCoverage) NuGet package.
@@ -39,3 +35,7 @@ Microsoft Code Coverage provides the following options:
39
35
|`--coverage-settings`| XML code coverage settings. |
40
36
41
37
For more information about the available options, see [settings](../additional-tools/dotnet-coverage.md#settings) and [samples](https://github.com/microsoft/codecoverage/tree/main/samples/Algorithms).
38
+
39
+
## Coverlet
40
+
41
+
There's currently no Coverlet extension, but you can use [Coverlet .NET global tool](https://github.com/coverlet-coverage/coverlet#net-global-tool-guide-suffers-from-possible-known-issue).
Copy file name to clipboardExpand all lines: docs/core/tools/dotnet-test.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -278,16 +278,16 @@ Where `Microsoft.NET.Test.Sdk` is the test host, `xunit` is the test framework.
278
278
dotnet test --logger trx
279
279
```
280
280
281
-
- Run the tests in the project in the current directory, and generate a code coverage file (after installing [Coverlet](https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md) collectors integration):
281
+
- Run the tests in the project in the current directory, and generate a code coverage file using [Microsoft Code Coverage](https://github.com/microsoft/codecoverage/blob/main/README.md):
282
282
283
283
```dotnetcli
284
-
dotnet test --collect:"XPlat Code Coverage"
284
+
dotnet test --collect "Code Coverage"
285
285
```
286
286
287
-
- Run the tests in the project in the current directory, and generate a code coverage file (Windows only):
287
+
- Run the tests in the project in the current directory, and generate a code coverage file using [Coverlet](https://github.com/coverlet-coverage/coverlet/blob/master/README.md) (after installing [Coverlet](https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md) collectors integration):
288
288
289
289
```dotnetcli
290
-
dotnet test --collect "Code Coverage"
290
+
dotnet test --collect:"XPlat Code Coverage"
291
291
```
292
292
293
293
- Run the tests in the project in the current directory, and log with detailed verbosity to the console:
0 commit comments