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

WordPress Trac noreply at wordpress.org
Thu Aug 26 18:10:23 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:

Comment (by hellofromTonya):

 Whoopsie, I forgot to add the ticket number to changeset [51669].
 Commenting here to (manually) link the changeset to this ticket.

 In [changeset:"51669" 51669]:
 Tests: Improve bootstrap error message for when ABSPATH folder does not

 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 wptests-config.php` file to match the
 change made in Core and would otherwise still get the outdated error

 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.

 Follow-up to [49569], [50441], [51581].
 Props jrf, hellofromTonya.

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

More information about the wp-trac mailing list