Skip to content

Show the project total in the Codecov PR comment - #155

Merged
erseco merged 1 commit into
mainfrom
ci/codecov-comment-header
Sep 29, 2026
Merged

erseco merged 1 commit into
mainfrom
ci/codecov-comment-header

Conversation

@erseco

@erseco erseco commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Summary

The Codecov PR comment only reported the patch (✅ All modified and coverable lines are covered by tests), never the project total or its change against the base. That is the header section, and condensed_header leaves it out.

  • layout: "condensed_header, diff, flags, files" → "header, diff, flags, files, footer".
  • flags still splits the PHP and JavaScript reports; the header total is the sum of both.

Testing

  • codecov.yml passes https://codecov.io/validate.

The condensed header leaves out the project coverage and its change
against the base, so the comment only reported the patch. Use the full
header, plus the footer with the legend; flags still split PHP and
JavaScript.
@github-actions

Copy link
Copy Markdown
Contributor

Test in WordPress Playground

Test the plugin with the code from this branch:

Preview in WordPress Playground

ℹ️ The eXeLearning editor is fetched from the shared release and unpacked into the plugin when the playground boots, so the first load may take a few extra seconds. ELP upload, shortcode, Gutenberg block and preview work normally.

@codecov-commenter

codecov-commenter commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.43%. Comparing base (eaf1968) to head (ac707fd).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #155   +/-   ##
=========================================
  Coverage     96.43%   96.43%           
  Complexity      806      806           
=========================================
  Files            36       36           
  Lines          4238     4238           
=========================================
  Hits           4087     4087           
  Misses          151      151           
Flag Coverage Δ
javascript 95.84% <ø> (ø)
php 96.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eaf1968...ac707fd. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@erseco
erseco merged commit 7ec2e82 into main Sep 29, 2026
5 checks passed
@erseco
erseco deleted the ci/codecov-comment-header branch September 29, 2026 03:57
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.

2 participants