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
Coverlet can output basic code coverage statistics using [TeamCity service messages](https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ServiceMessages).
The currently supported [TeamCity statistics](https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ServiceMessages) are:
130
+
131
+
| TeamCity Statistic Key | Description |
132
+
| :--- | :--- |
133
+
| CodeCoverageL | Line-level code coverage |
134
+
| CodeCoverageC | Class-level code coverage |
135
+
| CodeCoverageM | Method-level code coverage |
136
+
| CodeCoverageAbsLTotal | The total number of lines |
137
+
| CodeCoverageAbsLCovered | The number of covered lines |
138
+
| CodeCoverageAbsCTotal | The total number of classes |
139
+
| CodeCoverageAbsCCovered | The number of covered classes |
140
+
| CodeCoverageAbsMTotal | The total number of methods |
141
+
| CodeCoverageAbsMCovered | The number of covered methods |
142
+
121
143
#### Merging Results
122
144
123
145
With Coverlet you can combine the output of multiple coverage runs into a single result.
@@ -195,27 +217,6 @@ Examples
195
217
196
218
Both `--exclude` and `--include` options can be used together but `--exclude` takes precedence. You can specify the `--exclude` and `--include` options multiple times to allow for multiple filter expressions.
197
219
198
-
#### TeamCity Output
199
-
200
-
Coverlet can output basic code coverage statistics using [TeamCity service messages](https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ServiceMessages).
The currently supported [TeamCity statistics](https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ServiceMessages) are:
207
-
| TeamCity Statistic Key | Description |
208
-
| :--- | :--- |
209
-
| CodeCoverageL | Line-level code coverage |
210
-
| CodeCoverageC | Class-level code coverage |
211
-
| CodeCoverageM | Method-level code coverage |
212
-
| CodeCoverageAbsLTotal | The total number of lines |
213
-
| CodeCoverageAbsLCovered | The number of covered lines |
214
-
| CodeCoverageAbsCTotal | The total number of classes |
215
-
| CodeCoverageAbsCCovered | The number of covered classes |
216
-
| CodeCoverageAbsMTotal | The total number of methods |
217
-
| CodeCoverageAbsMCovered | The number of covered methods |
218
-
219
220
### MSBuild
220
221
221
222
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.
@@ -256,6 +257,7 @@ Supported Formats:
256
257
* lcov
257
258
* opencover
258
259
* cobertura
260
+
* teamcity
259
261
260
262
You can specify multiple output formats by separating them with a comma (`,`).
261
263
@@ -297,27 +299,6 @@ dotnet test /p:CollectCoverage=true /p:Threshold=80 /p:ThresholdType=line
297
299
298
300
You can specify multiple values for `ThresholdType` by separating them with commas. Valid values include `line`, `branch` and `method`.
299
301
300
-
#### TeamCity Output
301
-
302
-
Coverlet can output basic code coverage statistics using [TeamCity service messages](https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ServiceMessages).
303
-
304
-
```bash
305
-
dotnet test /p:CollectCoverage=true /p:TeamCityOutput=true
306
-
```
307
-
308
-
The currently supported [TeamCity statistics](https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ServiceMessages) are:
309
-
| TeamCity Statistic Key | Description |
310
-
| :--- | :--- |
311
-
| CodeCoverageL | Line-level code coverage |
312
-
| CodeCoverageC | Class-level code coverage |
313
-
| CodeCoverageM | Method-level code coverage |
314
-
| CodeCoverageAbsLTotal | The total number of lines |
315
-
| CodeCoverageAbsLCovered | The number of covered lines |
316
-
| CodeCoverageAbsCTotal | The total number of classes |
317
-
| CodeCoverageAbsCCovered | The number of covered classes |
318
-
| CodeCoverageAbsMTotal | The total number of methods |
319
-
| CodeCoverageAbsMCovered | The number of covered methods |
0 commit comments