Skip to content

Conversation

@swissspidy
Copy link
Member

This logic was previously in the reusable workflow in the wp-cli/.github repo, but in wp-cli/.github#157 I removed it (mostly by accident).

I forgot that wp-cli/wp-cli-bundle runs tests with Behat 3.15 which doesn't know the --xdebug (which is why we had this check in the first place). It's easier to check for WP_CLI_TEST_COVERAGE in this script itself. This makes local testing easier as well, so you only need to run WP_CLI_TEST_COVERAGE=true composer behatand don't need to remember whether you need to pass-- --xdebug` as well or not.

@swissspidy swissspidy added this to the 5.0.3 milestone Oct 18, 2025
@swissspidy swissspidy requested a review from a team as a code owner October 18, 2025 19:31
@codecov
Copy link

codecov bot commented Oct 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@schlessera schlessera merged commit 6d3fef9 into main Dec 9, 2025
51 checks passed
@schlessera schlessera deleted the try/behat-xdebug-flag branch December 9, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants