ci: add code coverage with Devel::Cover and Codecov#63
Draft
toddr-bot wants to merge 3 commits into
Draft
Conversation
Adds a coverage job to the CI workflow that runs the test suite under Devel::Cover and uploads results to Codecov. This provides visibility into which code paths are exercised by tests (baseline: ~55% coverage). Also adds cover_db/ to .gitignore to prevent accidental commits of local coverage data. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prevents Devel::Cover output from being included in CPAN tarballs if someone runs `cover -test` before `make dist`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove Devel::Cover::Report::Codecov — the codecov-action reads cover_db/ directly. The space-separated install string was also being parsed as a single module name by cpm. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
What
Adds a code coverage CI job that runs the test suite under Devel::Cover and uploads results to Codecov.
Why
Coverage visibility helps identify untested code paths and guides future test work. The current baseline is ~55% overall coverage (statement: 66%, branch: 49%, condition: 31%, subroutine: 80%).
How
coveragejob in the existing workflow, gated on theubuntujob passing firstcover -testwith Devel::Cover to instrument test runs-ignore_re '^t/') to focus on library coveragecodecov/codecov-action@v5(requiresCODECOV_TOKENsecret for private repos; works without for public repos)cover_db/to.gitignoreTesting
cover -testrun completed successfully with all 18 test files passing🤖 Generated with Claude Code
Quality Report
Changes: 3 files changed, 26 insertions(+), 1 deletion(-)
Code scan: clean
Tests: passed (OK)
Branch hygiene: clean
Generated by Kōan post-mission quality pipeline