dotnet / dotnet/docs

The console command should be one line instead of multiple lines if expected to be run in `Powershell` console for `reportgenerator`.

Open
#45,356 1 comment 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

### Type of issue

Typo

### Description

The console command should be one line instead of multiple lines if expected to be run in `Powershell` console for `reportgenerator`.

```powershell
reportgenerator
-reports:"Path\To\TestProject\TestResults\{guid}\coverage.cobertura.xml"
-targetdir:"coveragereport"
-reporttypes:Html
```

```powershell
reportgenerator -reports:"Path\To\TestProject\TestResults\{guid}\coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html
```

Suggestion for additional combination of all reports when run with:
```powershell
dotnet test --collect:"XPlat Code Coverage" --results-directory:"./TestResults" /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
```

```powershell
reportgenerator -reports:".\TestResults\**\coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html
```

### Page URL

https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-code-coverage?tabs=windows

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/testing/unit-testing-code-coverage.md

### Document Version Independent Id

ab6ce421-f5e5-94f1-e707-32763b3a6a24

### Platform Id

c4fee4a9-6f2b-131d-94db-041bd4940d7e

### Article author

@IEvangelist

### Metadata

* ID: 588a6d72-f70f-15f8-7505-5db491c8a8c6
* PlatformId: c4fee4a9-6f2b-131d-94db-041bd4940d7e
* Service: **dotnet-fundamentals**

[Related Issues](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+ab6ce421-f5e5-94f1-e707-32763b3a6a24)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.