chelout/go-coverage
go-coverage checks test coverage against configurable thresholds and generates reports.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | Subcommand to run: check, report, diff, breakdown. | no | check |
| config | Path to the configuration file (.testcoverage.yml). | no | "" |
| profile | Path to the coverage profile file. Overrides value from configuration. | no | "" |
| source-dir | Relative path to source files. | no | "" |
| debug | Prints additional debugging output. | no | false |
| threshold-file | Minimum coverage percentage required for individual files [0-100]. Overrides config. Only used with check command. | no | -1 |
| threshold-package | Minimum coverage percentage required for each package [0-100]. Overrides config. Only used with check command. | no | -1 |
| threshold-total | Minimum overall project coverage percentage [0-100]. Overrides config. Only used with check command. | no | -1 |
| breakdown-file-name | Save coverage breakdown to this file. Used by check/report (--breakdown-file-name) and breakdown (--output) subcommands. | no | "" |
| diff-base-breakdown-file-name | Base branch breakdown file for coverage diff. Used by check/report (--diff-base-breakdown-file-name) and diff (--base) subcommands. | no | "" |
| output-format | Output format: text, markdown, json, csv. Used by check, report, diff. | no | "" |
| output-file-name | Save report to this file. Used by check, report, diff. | no | "" |
Outputs
| name | description |
|---|---|
| total-coverage | Integer value [0-100], overall project test coverage percentage. Available for check and diff commands. |
| report | JSON-encoded string containing the coverage report. Available for check and diff commands. |