WordPress / WordPress/performance

Configure Codecov for Per-Directory Coverage Badges

Open
#1,944 5 comments 0 reactions 2 assignees View on GitHub

@ShyamGadde is already working on this.

Since Mar 18, 2025.

Infrastructure
Dominant language
PHP
Stars
461
Forks
165
Avg merge
11h 12m
Merged PRs (30d)
28

Description

Summary

Related https://github.com/WordPress/performance/issues/1789#issuecomment-2731163370

We need to configure Codecov to display coverage badges for each plugin directory in our repository. This will allow us to track and display code coverage metrics on a per-directory basis, providing more granular insights into our codebase.

Details

Currently, our Codecov setup provides an overall coverage badge for the entire repository. We want to enhance this by showing individual coverage badges for each plugin directory.

Steps to Achieve This
  1. Update GitHub Actions Workflow: Modify the .github/workflows/php-test-plugins.yml file to include flags for each plugin when uploading coverage reports to Codecov.

  2. Configure Codecov YAML: Create or update the codecov.yml file to define the flags for each plugin directory.

Expected Outcome
  • Each plugin directory will have its own coverage badge.
  • The badges will be displayed in the README , providing clear visibility into the coverage status of each plugin.

Additional Information

cc : @westonruter

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.