[wp-trac] [WordPress Trac] #53363: Test tool and unit test improvements for 5.9

WordPress Trac noreply at wordpress.org
Thu Aug 26 16:14:16 UTC 2021


#53363: Test tool and unit test improvements for 5.9
--------------------------------------+---------------------
 Reporter:  desrosj                   |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  5.9
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by jrf):

 * Attachment "53363-09-test-bootstrap-improve-error-msg.patch" added.

 Tests bootstrap: improve an outdated error condition  The PHPUnit tests
 are/should generally be run on the `src` directory, so changes just made
 can be tested. While testing via the `build` directory is also still
 supported, this is not the default.  This was last changed in [50441], but
 that commit did not remove/update the error message thrown by the test
 bootstrap file.  This last change also did not take into account that that
 change meant that people had to update their own `wp`tests-config.php`
 file to match the change made in Core and would otherwise still get the
 outdated error message.  This commit changes the messaging in the test
 bootstrap file to be more in line with the current reality, while still
 accounting for the fact that tests can be run from both `src` as well as
 `build`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53363>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list