vladopajic/go-test-coverage

go-test-coverage is a tool designed to report issues when test coverage falls below a specified threshold.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
configPath to the configuration file (.testcoverage.yml), which defines test coverage settings and thresholds.no""
source-dirSets relative path to source files.no""
debugPrints additional debugging output when running action.nofalse
profilePath to the coverage profile file. Overrides value from configuration.no""
local-prefixDEPRECATED! not used anymore.no""
threshold-fileMinimum coverage percentage required for individual files. Overrides value from configuration.no-1
threshold-packageMinimum coverage percentage required for each package. Overrides value from configuration.no-1
threshold-totalMinimum overall project coverage percentage required. Overrides value from configuration.no-1
breakdown-file-nameFile name of go-test-coverage breakdown file, which can be used to analyze coverage difference. Overrides value from configuration.no""
diff-base-breakdown-file-nameFile name of go-test-coverage breakdown file used to calculate coverage difference from current (head).no""
badge-file-nameIf specified, a coverage badge will be generated and saved to the given file path.no""
cdn-secretAPI secret key for CDN. If specified, the badge will be uploaded to the CDN.no""
cdn-keyAPI key for CDN access.no""
cdn-regionSpecifies the CDN region for the badge upload.no""
cdn-endpointURL endpoint for CDN where the badge will be uploaded.no""
cdn-file-nameFilename (including path) for storing the badge on the CDN.no""
cdn-bucket-nameName of the CDN bucket where the badge will be saved.no""
cdn-force-path-styleForces path-style URL access in the CDN.nofalse
git-tokenGitHub token for authorization. If provided, the badge will be uploaded to the specified GitHub repository.no""
git-repositoryTarget GitHub repository in {owner}/{repository} format where the badge will be stored.no${{ github.repository }}
git-branchRepository branch where the badge file will be saved.no""
git-file-nameFile name (including path) for storing the badge in the specified repository.no.badges/${{ github.ref_name }}/coverage.svg
versionNot used by docker action. Accepted for interface compatibility with source action.no""
namedescription
total-coverageInteger value in the range [0-100], representing the overall project test coverage percentage.
badge-colorColor hex code for the badge (e.g., `#44cc11`), representing the coverage status.
reportJSON-encoded string containing the detailed test coverage report.
badge-textDeprecated! Text label for the badge.