[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
Wed Mar 8 13:43:50 UTC 2017
#40071: Relative path used in test suite forces tests to be ran from tests dir
------------------------------+-----------------------------
Reporter: PressLabs | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: 4.7.3
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
In the wordPress test suite for version 4.7.3, inside `tests/phpunit/tests
/rest-api/rest-schema-setup.php` line 303 a relative path is used for
writing into a file.
Our use case is that the WordPress tests are cloned into our project and
they run alongside our own test suite from an upper level directory in an
automated build. That makes this specific test to fail since it cannot
resolve the relative path correctly and thus the whole build fails.
The suggestion would be to use absolute paths here in order to let others
include this test suite as a subset of a bigger test suite and run all of
them from top level, without `cd`-ing into every subset.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40071>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list