Skip to content

4.0 | GH Actions/EndToEnd tests: fix the tests for 4.0 #1173

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

Merged
merged 5 commits into from
Aug 8, 2025

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 8, 2025

Description

My bad - the E2E tests weren't running on the 4.x branch and once enabled, were failing. Should be fixed now with these changes.

GH Actions/end-to-end-tests: fix condition for running on pushes

GH Actions/end-to-end-tests: remove unsupported PHP versions

EndToEnd Tests: fix the code to allow for capturing both STDOUT as well as STERR

As of PHPCS 4.0, the output is split between STDOUT and STDERR, so the tests need to capture the output of both streams to allow for the pre-existing assertions to pass.

EndToEnd Tests: fix the code to allow for new exit codes

As of PHPCS 4.0, the exit codes have changed. This commit fixes the tests to expect the new exit codes.

EndToEnd Tests: fix up the command for parallel expectations

Suggested changelog entry

N/A

Related issues/external references

Follow up on #1126

@jrfnl jrfnl added this to the 4.0.0 milestone Aug 8, 2025
jrfnl added 4 commits August 8, 2025 16:23
…ll as STERR

As of PHPCS 4.0, the output is split between STDOUT and STDERR, so the tests need to capture the output of both streams to allow for the pre-existing assertions to pass.
As of PHPCS 4.0, the exit codes have changed. This commit fixes the tests to expect the new exit codes.
@jrfnl jrfnl force-pushed the phpcs-4.0/ghactions-end-to-end-should-also-run-on-4.x branch from 641b37a to 23bf79f Compare August 8, 2025 14:23
@jrfnl jrfnl merged commit bd2d185 into 4.x Aug 8, 2025
64 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/ghactions-end-to-end-should-also-run-on-4.x branch August 8, 2025 15:06
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.

2 participants