You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value given to `--merge-with`**must** be a path to Coverlet's own json result format.
129
+
119
130
#### Threshold
120
131
121
132
Coverlet allows you to specify a coverage threshold below which it returns a non-zero exit code. This allows you to enforce a minimum coverage percent on all changes to your project.
@@ -228,6 +239,16 @@ To specify a directory where all results will be written to (especially if using
228
239
dotnet test /p:CollectCoverage=true /p:CoverletOutput='./results/'
229
240
```
230
241
242
+
#### Merging Results
243
+
244
+
With Coverlet you can combine the output of multiple coverage runs into a single result.
245
+
246
+
```bash
247
+
dotnet test /p:CollectCoverage=true /p:MergeWith='/path/to/result.json'
248
+
```
249
+
250
+
The value given to `/p:MergeWith`**must** be a path to Coverlet's own json result format.
251
+
231
252
#### Threshold
232
253
233
254
Coverlet allows you to specify a coverage threshold below which it fails the build. This allows you to enforce a minimum coverage percent on all changes to your project.
0 commit comments