[wp-trac] [WordPress Trac] #40071: Relative path used in test suite forces tests to be ran from tests dir

WordPress Trac noreply at wordpress.org
Sun Feb 25 18:06:52 UTC 2018


#40071: Relative path used in test suite forces tests to be ran from tests dir
------------------------------+------------------------------
 Reporter:  PressLabs         |       Owner:  adamsilverstein
     Type:  defect (bug)      |      Status:  closed
 Priority:  low               |   Milestone:  5.0
Component:  Build/Test Tools  |     Version:  4.7.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------------
Changes (by adamsilverstein):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"42741"]:
 {{{
 #!CommitTicketReference repository="" revision="42741"
 Unit Tests: add a DIR_TESTROOT constant to avoid relative paths.

 Fix an issue that prevents tests from running correctly when run outside
 their normal context.

 Props PressLabs, johnbillion.
 Fixes #40071.
 }}}

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


More information about the wp-trac mailing list