Make WordPress Core

Changeset 45827


Ignore:
Timestamp:
08/19/2019 02:17:50 AM (4 years ago)
Author:
pento
Message:

Tests: Add an xdebug group for tests that require xdebug.

These tests are now also run as their own part of the Travis build, to ensure performance of other tests isn't affected by the presence of xdebug.

Fixes #40532.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r45799 r45827  
    112112      npm run test:php -- --verbose -c tests/phpunit/multisite.xml --group ms-files &&
    113113      npm run test:php -- --verbose -c phpunit.xml.dist --group external-http &&
    114       npm run test:php -- --verbose -c phpunit.xml.dist --group restapi-jsclient
     114      npm run test:php -- --verbose -c phpunit.xml.dist --group restapi-jsclient &&
     115      # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist.
     116      LOCAL_PHP_XDEBUG=true npm run test:php -- -v --group xdebug --exclude-group __fakegroup__
    115117    elif [[ "$WP_TRAVISCI" == "lint:php" ]]; then
    116118      docker-compose run --rm php composer format &&
  • trunk/tests/phpunit/tests/ajax/Response.php

    r45607 r45827  
    7070     * @runInSeparateProcess
    7171     * @preserveGlobalState disabled
     72     * @group xdebug
    7273     */
    7374    public function test_response_charset_in_header() {
  • trunk/tests/phpunit/tests/oembed/headers.php

    r45607 r45827  
    66 * @group oembed
    77 * @group oembed-headers
     8 * @group xdebug
    89 */
    910class Tests_oEmbed_HTTP_Headers extends WP_UnitTestCase {
Note: See TracChangeset for help on using the changeset viewer.