Skip to content

Commit

Permalink
Merge pull request #6 from senthilhns/cc02
Browse files Browse the repository at this point in the history
Cc02
  • Loading branch information
Ompragash authored Nov 4, 2024
2 parents 3f6dea7 + 94afc4e commit 1ce897e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,31 @@ plugins/coverage-report

<br>

Unit test should be run using
```shell
DRONE_OUTPUT=/tmp/drone-output go test ./...
```
### Output Env variables set for JaCoCo and JaCoCo XML

| Parameter | Description |
|-----------------------|----------------------------------------------------------------------------------------------|
| `INSTRUCTION_COVERAGE` | Ratio of executed bytecode instructions over the total instructions calculated as percentage |
| `BRANCH_COVERAGE` | Percentage of branches executed in conditional statements (like if, else). |
| `LINE_COVERAGE` | Ratio of code lines executed over the total lines, calculated as percentage |
| `METHOD_COVERAGE` | Ratio of methods covered by tests over the total methods, calculated as percentage |
| `CLASS_COVERAGE` | Ratio of classes covered by tests over the total classes, calculated as percentage |
| `COMPLEXITY_COVERAGE` | Measures code complexity based on control flow paths and the Cyclomatic Complexity metric. |

### Output Env variables set for Cobertura

| Parameter | Description |
|-----------------------|--------------------------------------------------------------------------------------------|
| `BRANCH_COVERAGE` | Percentage of branches executed in conditional statements (like if, else). |
| `LINE_COVERAGE` | Ratio of code lines executed over the total lines, calculated as percentage |
| `COMPLEXITY_COVERAGE` | Measures code complexity based on control flow paths and the Cyclomatic Complexity metric. |
| `METHOD_COVERAGE` | Ratio of methods covered by tests over total methods, calculated as percentage |
| `CLASS_COVERAGE` | Ratio of classes covered by tests over total classes, calculated as percentage |
| `FILE_COVERAGE` | Coverage at the file level, indicating the extent to which each file is covered by tests. |
| `PACKAGE_COVERAGE` | Ratio of packages covered by tests over total coverage, calculated as percentage |
| `COMPLEXITY_DENSITY` | Ratio of complexity to lines of code, showing average complexity across the codebase. |
| `LOC` | Lines of Code, indicating the total number of lines in the codebase. |


# Supported arch and os
This plugin can only be run on linux amd64/arm64. Windows build not supported.
Expand Down
7 changes: 0 additions & 7 deletions plugin/plugin_defs/defs_test.go

This file was deleted.

0 comments on commit 1ce897e

Please sign in to comment.