Add Go code coverage reporting with Cobertura XML and GitHub upload - #340
Open
remyleone with code-coverage-agent[bot] wants to merge 2 commits into
Open
remyleone with code-coverage-agent[bot] wants to merge 2 commits into
remyleone with code-coverage-agent[bot] wants to merge 2 commits into
Conversation
…load Co-authored-by: remyleone <300834+remyleone@users.noreply.github.com>
Code Coverage OverviewLanguages: Go Go / code-coverage-agentThe overall coverage in commit 36a277c in the Show a code coverage summary of the most covered files.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #340 +/- ##
=======================================
Coverage 0.00% 0.00%
=======================================
Files 1233 1233
Lines 131470 131470
=======================================
Misses 131470 131470
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Go code coverage reporting integrated into the existing CI pipeline, producing Cobertura XML reports and uploading them to GitHub's code coverage API for PR annotations and baseline comparisons.
Changes
MakefileGOCOVER_COBERTURApointing to$(TOOLS_HOST_DIR)/gocover-coberturagocover-coberturaviago installcoberturatarget to depend on the tool, somake coberturais self-contained.gitignore_output/tests/(coverage profiles, Cobertura XML, test logs).github/workflows/ci.ymlmake coberturastep inunit-testsjob to convertcoverage.txt→cobertura-coverage.xml, filtering out generated (zz_*) filesupload-coverage-gojob withcode-quality: writethat downloads the artifact and callsactions/upload-code-coverage@v1; gated so it only runs whenunit-testssucceeds and not on fork PRs