googlecloudplatform/LCOV GitHub Badges
Generates Badges from LCOV files.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| file | LCOV generated, combined, data file location from workspace root. Example: bazel-out/darwin-fastbuild/testlogs/pkg/<project_name>/<project_name>_test/coverage.dat | yes | — |
| access_token | Access token used for writing files | no | — |
| style | One of five styles: plastic, flat, flat-square, for-the-badge, or social. The default is flat. | no | — |
| icon_name | The name of the icon for the badge, NONE if you do not want one. Default: Google Cloud | no | — |
| label | The label for the badge. Default: Coverage | no | — |
| critical | An integer value, displaying the critical color if at or below the value. Default: 60 | no | — |
| warning | An integer value, displaying the warning color if above critical and below or equal to this threshold. Default: 75 | no | — |
| label_color | A hex value for the label color. Default: ffffff | no | — |
| message_color | A hex value for the message color. Default ffffff | no | — |
| success_color | A hex value for the success color. Default: 43ad43 (green) | no | — |
| warning_color | A hex value for the warning color. Default: d68f0c (dark yellow) | no | — |
| critical_color | A hex value for the critical color. Default: 9c2c9c (dark red) | — | — |
Outputs
| name | description |
|---|---|
| coverage_functions_found | The number of functions found |
| coverage_functions_hit | The number of functions hit |
| coverage_lines_found | The number of lines found |
| coverage_lines_hit | The number of lines hit |
| coverage_score | The score in percentage of total lines covered |
| coverage_badge_url | The URL used to generate the badge |