WordPress.org

Make WordPress Core

Opened 5 months ago

#40532 new defect (bug)

Find a workaround for unit tests that have a dependency on XDebug

Reported by: johnbillion Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description

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() (ref)
  • Tests_oEmbed_HTTP_Headers::test_rest_pre_serve_request_headers() (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.

Change History (0)

Note: See TracTickets for help on using tickets.