Skip to content

Report coverage and test results for GitHub Actions runs #1730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: v2.x
Choose a base branch
from

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Jul 7, 2025

In this first PR, we start reporting coverage and test results to codecov.io to get baseline coverage information. I'll add coverage reporting to Evergreen in a separate pull request as this requires changes to the toolchain first.

Note that running tests in coverage mode with xdebug is significantly slower, so we should keep an eye on whether the runtime of tests is still acceptable.

@alcaeus alcaeus requested review from GromNaN and paulinevos July 7, 2025 12:14
@alcaeus alcaeus requested a review from a team as a code owner July 7, 2025 12:14
@@ -81,6 +83,23 @@ jobs:
php-ini-values: "zend.assertions=1"

- name: "Run PHPUnit"
run: "vendor/bin/phpunit"
run: "vendor/bin/phpunit --configuration phpunit.evergreen.xml --coverage --coverage-clover coverage.xml"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the --coverage option exists.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what you get for trusting AI. Removed that, only --coverage-clover is required.

@alcaeus alcaeus force-pushed the gha-report-coverage branch from 543906e to 1ad87f9 Compare July 7, 2025 13:14
@alcaeus alcaeus requested a review from GromNaN July 7, 2025 13:14
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