Opened 12 months ago
Closed 11 months ago
#9053 closed task (fixed)
Update wp-env to version 9.0
Reported by: | imath | Owned by: | netweb |
---|---|---|---|
Milestone: | 14.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests |
Cc: |
Description
This is a task I skipped on purpose in #9047 as wp-env's way of testing PHP has evolved. After digging more into it, I wasn't able to find the right use for wp-env run tests-cli phpunit
as explained here.
But I was able to use the wp-env run cli --env-cwd=wp-content/plugins/buddypress composer
command to run PHPUnit tests.
I'll submit a PR to run the GH actions to see if my way of testing PHP with wp-env is also fine for these.
Change History (4)
This ticket was mentioned in PR #211 on buddypress/buddypress by @imath.
12 months ago
#1
- Keywords has-patch has-unit-tests added; needs-patch removed
12 months ago
#2
Unit Testing when WordPress version is < 6.1 still needs some work and seems to be the only case where we need the wp-phpunit/wp-phunit
composer package and constant/config files like BP_USE_WP_ENV_TESTS
or env.xml.
package.json
@wordpress/env
version and PHPUnit related scriptscomposer.json
PS: some constant/config files may not be needed anymore (eg:
BP_USE_WP_ENV_TESTS
or env.xml).Trac ticket: https://buddypress.trac.wordpress.org/ticket/9053