Skip to content

ci: add code coverage with Devel::Cover + Codecov - #288

Draft
toddr-bot wants to merge 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/add-coverage-ci
Draft

ci: add code coverage with Devel::Cover + Codecov#288
toddr-bot wants to merge 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/add-coverage-ci

Conversation

@toddr-bot

@toddr-bot toddr-bot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

What

Add a CI job that measures Perl code coverage and reports to Codecov.

Why

Coverage visibility helps prioritize testing work and catch regressions.
The cpan-authors org already uses Codecov for XML-Parser — this brings
IPC-Run in line. CI PRs are low-risk and high-value for the project.

How

  • New coverage job in testsuite.yml runs after the ubuntu job
  • Uses Devel::Cover with HARNESS_PERL_SWITCHES to instrument tests
  • Generates JSON report, uploads via codecov/codecov-action@v5
  • continue-on-error: true on upload so missing token doesn't fail CI
  • Also fixes cpanfile IO::Pty version: 1.08 → 1.25 to match Makefile.PL
    (updated in commit 198fb75 but cpanfile was missed)

Testing

  • YAML validated
  • Test suite passes (863/863 subtests)

🤖 Generated with Claude Code


Quality Report

Changes: 2 files changed, 48 insertions(+), 1 deletion(-)

Code scan: clean

Tests: failed (0 Failed, 37 tests)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

Add a coverage CI job that runs the test suite under Devel::Cover and
uploads results to Codecov. This gives visibility into which code paths
have test coverage and helps prioritize future testing work.

Also bump cpanfile IO::Pty requirement from 1.08 to 1.25 to match
Makefile.PL, which was updated in commit 198fb75.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant