zerowiggliness/Code Coverage Advance

Generate Cobertura coverage results, including changed PR files, create badges, and output markdown coverage reports.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
cobertura-filePath to the Cobertura XML input fileyescoverage/cobertura-coverage.xml
output-filePath to save the filtered coverage output file. i.e 'coverage/cobertura-changed-coverage.xml'. Will only be written if it is tun within a push request. Leave empty to disable writing the file.no
main-branchName of the main branch to compare againstno${{ github.repository_default_branch }}
coverage-thresholdThreasholds for coverage percentage health "<warning% <success%" i.e "50 75"no50 75
coverage-changes-thresholdThreasholds for coverage percentage health "<warning% <success%" i.e "50 75". This relates to changed file coverage only.no50 75
badge-styleGithub badge style to use for the coverage badge. Options are 'flat', 'flat-square', 'plastic', 'for-the-badge', 'social'.noflat
github-tokenGitHub token for accessing the repositoryyes${{ github.token }}
current-branchName of the current branchno${{ github.head_ref || github.ref_name }}
file-filtersComma-separated list of file patterns to include/exclude (e.g., "src/**/*.ts,!**/*.test.ts")no**/*.*
fail-actionWhether to fail the action if coverage is below the threshold. Defaults to true.notrue
max-missing-linesMaximum number of rows to show in the uncovered lines table. Defaults to 100.no100
namedescription
coverage-markdownMarkdown formatted coverage report
coverage-changes-markdownMarkdown formatted coverage of changes only report
coverage-passrateMarkdown formatted coverage report
coverage-changes-passrateMarkdown formatted coverage of changes only report
coverage-badgeThe badge markdown
coverage-changes-badgeThe changed code badge markdown
coverage-failedTrue if coverage is below the threshold, false otherwise
coverage-changes-failedTrue if change coverage is below the threshold, false otherwise
coverage-missing-linesMarkdown table of uncovered lines grouped by file and method
coverage-changes-missing-linesMarkdown table of uncovered lines (changes only) grouped by file and method