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 bootstrap file for PHPUnit #310

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Sep 26, 2023

As, as of YoastCS 3.0, more external standards will be used, manually maintaining the PHPCS_IGNORE_TESTS lists becomes cumbersome.

This commit adds a bootstrap file which will:

  • Load the PHPCS autoloader (was previously done from the command-line);
  • Will automatically set the PHPCS_IGNORE_TESTS environment variable to the correct value to prevent running tests from other standards.

As, as of YoastCS 3.0, more external standards will be used, manually maintaining the `PHPCS_IGNORE_TESTS` lists becomes cumbersome.

This commit adds a bootstrap file which will:
* Load the PHPCS autoloader (was previously done from the command-line);
* Will automatically set the `PHPCS_IGNORE_TESTS` environment variable to the correct value to prevent running tests from other standards.
@jrfnl jrfnl added this to the 3.0 milestone Sep 26, 2023
@coveralls
Copy link

Coverage Status

coverage: 97.371%. remained the same when pulling 885354e on JRF/tests-add-bootstrap-file into 0e33b6b on develop.

@jrfnl jrfnl merged commit 8a692fa into develop Sep 26, 2023
@jrfnl jrfnl deleted the JRF/tests-add-bootstrap-file branch September 26, 2023 13:31
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