Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren authored Feb 5, 2025
1 parent 8d9dcd8 commit 0290c4f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ Microsoft Code Coverage provides the following options:
| `--coverage` | Collect the code coverage using dotnet-coverage tool. |
| `--coverage-output` | The name or path of the produced coverage file. By default, the file is `TestResults/<guid>.coverage`. |
| `--coverage-output-format` | Output file format. Supported values are: `coverage`, `xml`, and `cobertura`. Default is `coverage`. |
| `--coverage-settings` | [XML code coverage settings](https://learn.microsoft.com/dotnet/core/additional-tools/dotnet-coverage#settings). |
| `--coverage-settings` | [XML code coverage settings](../additional-tools/dotnet-coverage.md#settings). |

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).

## Coverlet

> [!IMPORTANT]
> The `coverlet.collector` NuGet package is designed specifically for VSTest and cannot be used with `Microsoft.Testing.Platform`
> The `coverlet.collector` NuGet package is designed specifically for VSTest and cannot be used with `Microsoft.Testing.Platform`.
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).

Assuming you have already installed coverlet global tool, you can now run:
Assuming you've already installed the Coverlet global tool, you can now run:

```bash
coverlet .\bin\Debug\net8.0\TestProject2.dll --target "dotnet" --targetargs "test .\bin\Debug\net8.0\TestProject2.dll --no-build"
Expand Down

0 comments on commit 0290c4f

Please sign in to comment.