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

Fix test runner with latest version of wp-env #33

Merged
merged 6 commits into from
Jun 9, 2023

Conversation

alecgeatches
Copy link
Contributor

@alecgeatches alecgeatches commented Jun 8, 2023

Description

In the latest version of wp-env, the phpunit container was removed in favor of global installation of phpunit. Here is an example failure from this test:

The 'phpunit' container has been removed. Please use 'wp-env run tests-cli --env-cwd=wp-content/path/to/plugin phpunit' instead.

As the error indicates, test commands should be changed to use the tests-cli container instead.

Note that the test-debug command was also removed because debugging will be enabled with the regular test/test-multisite commands if a testing environment is started with wp-env start --xdebug.

Steps to Test

wp-env start
composer install
composer run test
composer run test-multisite

@alecgeatches alecgeatches self-assigned this Jun 8, 2023
@alecgeatches alecgeatches requested a review from a team as a code owner June 8, 2023 19:08
@alecgeatches alecgeatches merged commit cdcbc1f into trunk Jun 9, 2023
@alecgeatches alecgeatches deleted the fix/wp-env-test-run branch June 9, 2023 17:38
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