Skip to content

Commit d955f20

Browse files
committed
add note for msbuild parameter CoverletOutput
1 parent 98b34e2 commit d955f20

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Documentation/MSBuildIntegration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ To specify a directory where all results will be written to (especially if using
5050
dotnet test /p:CollectCoverage=true /p:CoverletOutput='./results/'
5151
```
5252

53+
_Note: the escape characters might produce some unexpected results._
54+
55+
|status| msbuild parameter |
56+
|---|---|
57+
|:heavy_check_mark:|`/p:CoverletOutput="C:/GitHub/coverlet/artifacts/Reports/coverlet.core/"`|
58+
|:heavy_check_mark:|`/p:CoverletOutput="C:\\GitHub\\coverlet\\artifacts\\Reports\\coverlet.core\\"`|
59+
|:heavy_check_mark:|`/p:CoverletOutput="C:\GitHub\coverlet\artifacts\Reports\coverlet.core\\"`|
60+
|:x:|`/p:CoverletOutput="C:\GitHub\coverlet\artifacts\Reports\coverlet.core\"`|
61+
5362
The Coverlet MSBuild task sets the `CoverletReport` MSBuild item so that you can easily use the produced coverage reports. For example, using [ReportGenerator](https://github.com/danielpalme/ReportGenerator#usage--command-line-parameters) to generate an html coverage report.
5463

5564
```xml

0 commit comments

Comments
 (0)