[wp-trac] [WordPress Trac] #40532: Find a workaround for unit tests that have a dependency on XDebug
WordPress Trac
noreply at wordpress.org
Sat Apr 22 17:13:34 UTC 2017
#40532: Find a workaround for unit tests that have a dependency on XDebug
------------------------------+------------------------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: |
------------------------------+------------------------------------------
In #39978, XDebug was disabled when running the test suite on Travis. This
resulted in a 40% increase in build speed and a 40% decrease in developer
frustration.
Unfortunately it was overlooked that two tests in core have a dependency
on XDebug:
* `Tests_Ajax_Response::test_response_charset_in_header()`
([https://core.trac.wordpress.org/browser/tags/4.7.4/tests/phpunit/tests/ajax/Response.php?marks=72-74#L60
ref])
* `Tests_oEmbed_HTTP_Headers::test_rest_pre_serve_request_headers()`
([https://core.trac.wordpress.org/browser/tags/4.7.4/tests/phpunit/tests/oembed/headers.php?marks=11-13#L3
ref])
Both of these tests are skipped when XDebug isn't available, so they're no
longer tested on Travis.
A workaround needs to be found for these tests so they no longer rely on
XDebug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40532>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list