Update collector docs with info about passing format without runsettings file (#1444)

This commit is contained in:
David Müller
2023-02-15 09:03:41 +01:00
committed by GitHub
parent a014bf0cd0
commit 3bbe502845
+14 -3
View File
@@ -77,9 +77,20 @@ We're working to fill the gaps.
### Default option (if you don't specify a runsettings file) ### Default option (if you don't specify a runsettings file)
| Option | Summary | Without specifying a runsettings file and calling coverlet by just the name of the collector, the result of the generated coverage output is by default in cobertura format.
|:-------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ```
|Format | Results format in which coverage output is generated. Default format is cobertura. Supported format lcov, opencover, cobertura, teamcity, json (default coverlet proprietary format) | dotnet test --collect:"XPlat Code Coverage"
```
The output format of the coverage report can also be changed without a runsettings file by specifying it in a parameter. The supported formats are lcov, opencover, cobertura, teamcity, json (default coverlet proprietary format).
```
dotnet test --collect:"XPlat Code Coverage;Format=json"
```
It is even possible to specify the coverage output in multiple formats.
```
dotnet test --collect:"XPlat Code Coverage;Format=json,lcov,cobertura"
```
### Advanced Options (Supported via runsettings) ### Advanced Options (Supported via runsettings)