Skip to content

Commit bc85b02

Browse files
authored
Merge pull request #171 from FrankyBoy/patch-1
Move multi-value paragraph up for visibility
2 parents 6f44ca5 + eed9b61 commit bc85b02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ Both `--exclude` and `--include` options can be used together but `--exclude` ta
187187
188188
In this mode, Coverlet doesn't require any additional setup other than including the NuGet package in the unit test project. It integrates with the `dotnet test` infrastructure built into the .NET Core CLI and when enabled, will automatically generate coverage results after tests are run.
189189
190+
If a property takes multiple comma-separated values please note that [you will have to add escaped quotes around the string](https://github.com/Microsoft/msbuild/issues/2999#issuecomment-366078677) like this: `/p:Exclude=\"[coverlet.*]*,[*]Coverlet.Core*\"`, `/p:Include=\"[coverlet.*]*,[*]Coverlet.Core*\"`, or `/p:CoverletOutputFormat=\"json,opencover\"`.
191+
190192
#### Code Coverage
191193
192194
Enabling code coverage is as simple as setting the `CollectCoverage` property to `true`
@@ -287,7 +289,7 @@ Examples
287289
288290
Both `Exclude` and `Include` properties can be used together but `Exclude` takes precedence.
289291
290-
You can specify multiple filter expressions by separting them with a comma (`,`). If you specify multiple filters, then [you'll have to escape the surrounding quotes](https://github.com/Microsoft/msbuild/issues/2999#issuecomment-366078677) like this: `/p:Exclude=\"[coverlet.*]*,[*]Coverlet.Core*\"` or `/p:Include=\"[coverlet.*]*,[*]Coverlet.Core*\"`.
292+
You can specify multiple filter expressions by separting them with a comma (`,`).
291293
292294
### Cake Addin
293295
If you're using [Cake Build](https://cakebuild.net) for your build script you can use the [Cake.Coverlet](https://github.com/Romanx/Cake.Coverlet) addin to provide you extensions to dotnet test for passing coverlet arguments in a strongly typed manner.

0 commit comments

Comments
 (0)