Skip to content

Commit 6872a35

Browse files
committed
update README with documentation about specifying output formats
1 parent d4b4118 commit 6872a35

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,19 @@ Supported Formats:
6464
* opencover
6565
* cobertura
6666

67-
The output of the coverage result can also be specified using the `CoverletOutput` property.
67+
You can specify multiple output formats by separating them with a comma (`,`).
68+
69+
The output of the coverage result can be specified using the `CoverletOutput` property.
70+
71+
```bash
72+
dotnet test /p:CollectCoverage=true /p:CoverletOutput='./result.json'
73+
```
74+
75+
To specify a directory where all results will be written to (especially if using multiple formats), end the value with a `/`.
76+
77+
```bash
78+
dotnet test /p:CollectCoverage=true /p:CoverletOutput='./results/'
79+
```
6880

6981
### Threshold
7082

0 commit comments

Comments
 (0)