Skip to content
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

Tests: add @group Windows to more tests + mention in CONTRIBUTING #678

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 13, 2024

Description

Follow up on #663

Tests: add @group Windows to more tests

As part of PR #663, test runs on the Windows OS where introduced in CI/GH Actions.

While, generally speaking, all tests should run and pass on Windows too (and they do), for the purposes of CI, a specific test group named Windows was introduced to allow for selectively only running the tests which may have a different outcome on Windows.
This group is used in the code coverage job to prevent the Windows builds taking forever.

While most PHPCS code is OS agnostic, there are a number of places in the code base where OS-based conditions are used.

This commit adds the @group Windows annotation to few more tests which hits these OS-based conditions to make sure those conditions are also hit in the code coverage builds.

CONTRIBUTING: document use of the @group Windows annotation

GH Actions: exclude PHP 5.4-Windows combi everywhere

This was in part already done in #663 and #677, but there was still one PHP 5.4-Windows build being run.

This last one is now also excluded.

Suggested changelog entry

N/A

@jrfnl jrfnl added this to the 3.11.1 milestone Nov 13, 2024
@jrfnl jrfnl force-pushed the feature/tests-add-windows-group-to-more-tests branch from 91ba125 to c5c0c9d Compare November 13, 2024 18:31
As part of PR 663, test runs on the Windows OS where introduced in CI/GH Actions.

While, generally speaking, all tests should run and pass on Windows too (and they do), for the purposes of CI, a specific test group named `Windows` was introduced to allow for selectively only running the tests which _may_ have a different outcome on Windows.
This group is used in the code coverage job to prevent the Windows builds taking forever.

While most PHPCS code is OS agnostic, there are a number of places in the code base where OS-based conditions are used.

This commit adds the `@group Windows` annotation to few more tests which hits these OS-based conditions to make sure those conditions are also hit in the code coverage builds.
This was in part already done in 663 and 677, but there was still one PHP 5.4-Windows build being run.

This last one is now also excluded.
@jrfnl jrfnl force-pushed the feature/tests-add-windows-group-to-more-tests branch from c5c0c9d to eca6b24 Compare November 13, 2024 19:06
@jrfnl jrfnl merged commit 26ddb35 into master Nov 13, 2024
70 checks passed
@jrfnl jrfnl deleted the feature/tests-add-windows-group-to-more-tests branch November 13, 2024 20:48
@jrfnl jrfnl mentioned this pull request Nov 13, 2024
1 task
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.

1 participant