#40071 closed defect (bug) (fixed)
Relative path used in test suite forces tests to be ran from tests dir
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | low |
Severity: | normal | Version: | 4.7.3 |
Component: | Build/Test Tools | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (9)
#1
@
8 years ago
- Keywords has-patch reporter-feedback needs-testing added
- Priority changed from normal to low
#3
in reply to:
↑ 2
@
8 years ago
Replying to johnbillion:
cc @adamsilverstein for sanity check.
@johnbillion Looks good. I tested this out and verified the fixture file is generated in the correct location when I run phpunit from the root.
Thanks for the report @PressLabs. Could you give 40071.diff a test and see if it addresses the issue for you?
Introduced in [40058].