[wp-trac] [WordPress Trac] #53911: Test modernization backwards-compatibility backports to help extenders with WordPress cross-version testing

WordPress Trac noreply at wordpress.org
Fri Aug 20 07:03:04 UTC 2021


#53911: Test modernization backwards-compatibility backports to help extenders with
WordPress cross-version testing
-----------------------------------+--------------------------
 Reporter:  hellofromTonya         |       Owner:  johnbillion
     Type:  task (blessed)         |      Status:  assigned
 Priority:  normal                 |   Milestone:  5.9
Component:  Build/Test Tools       |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+--------------------------

Comment (by jrf):

 Replying to [comment:13 azaozz]:
 > Two of the "top" requirements haven't been implemented yet: to actually
 be able to run the WP tests in PHPUnit 9.5, and to be able to install the
 polyfills (actually they are shims) globally, not in the checkout dir
 (that would support installing them in the Docker image, see #53945).

 I have a feeling there is a misunderstanding here.

 The backports are not intended to make significant changes to the test
 suites for older WP versions.
 They are intended to:
 1. Allow tests which need to be backported for the security test suite to
 be backported to older WP versions without the need to make significant
 changes to these tests to get them to run.
 2. Make it easier for integrators to be able to have one test suite and
 still be able to run it against multiple WP versions, including WP 5.9.

 These backports are *''not''* intended to make older WP test suites
 compatible with higher PHPUnit versions then they previously supported,
 nor to make it possible for older WP versions to run against higher PHP
 versions then they previously supported.

 In other words:
 1. The tests for WP 5.9 are running on PHPUnit 9.5.
 2. Changing the supported PHPUnit version(s) for older WP versions is not
 on the table (and would require significantly more changes).


 As for the ability to install the Polyfills (or shims if you prefer to
 call them that) globally, that's already included in the current backport
 proposal. The logic needed for that is in the test bootstrap.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53911#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list