Skip to content

Commit 3af7fb3

Browse files
committed
Add documentation for coverage plugin
1 parent 8838587 commit 3af7fb3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

doc/available_metrics.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,3 +392,29 @@ Tags specific for this measurement:
392392
| git_repository | string | URL of the Git repository used by the build | |
393393
| git_revision | string | SHA-1 of the commit selected | |
394394
| git_reference | string | reference of the branch | |
395+
396+
### Coverage plugin (since 4.0)
397+
398+
Dynamically gathers available data for Project, Modified Lines, and Modified Files (see
399+
[coverage plugin documentation](https://plugins.jenkins.io/coverage/#plugin-content-remote-api) for more information).
400+
The `delta` metrics are not sent to InfluxDB.
401+
402+
#### `coverage_project_data`, `coverage_modified_lines_data`, `coverage_modified_files_data`
403+
404+
| Metric | Type | Description | Introduced in |
405+
| --- | --- |---------------------------------------------| --- |
406+
| branch | float | Branch coverage percentage | |
407+
| class | float | Class coverage percentage \* | |
408+
| complexity | integer | Code complexity percentage \* | |
409+
| complexity-density | float | 0-1 decimal calculated by complexity/loc \* | |
410+
| complexity-maximum | integer | Maximum complexity | |
411+
| file | float | File coverage percentage | |
412+
| instruction | float | Instruction coverage percentage \* | |
413+
| line | float | Line coverage percentage | |
414+
| loc | integer | Lines of code percentage | |
415+
| method | float | Method coverage percentage \* | |
416+
| module | float | Module coverage percentage | |
417+
| package | float | Package coverage percentage | |
418+
| tests | integer | Amount of tests | |
419+
420+
\* These metrics are not available for `coverage_modified_lines_data`.

0 commit comments

Comments
 (0)