Make WordPress Core

Changeset 44534


Ignore:
Timestamp:
01/10/2019 02:03:25 AM (6 years ago)
Author:
pento
Message:

Build/Tests: Allow running unit tests from src.

This is a partial recommit of [44509]: it allows running unit tests from src (which is useful), but doesn't make it the default (which Travis is having issues with).

See #45863.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/bootstrap.php

    r44512 r44534  
    3636require_once $config_file_path;
    3737require_once dirname( __FILE__ ) . '/functions.php';
    38 
    39 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && file_exists( ABSPATH . '_index.php' ) ) {
    40     // Perhaps add more documentation about having to run `grunt` before running tests after changing code.
    41     echo "ERROR: ABSPATH must point to the `build` directory, not the `src` directory. Please update your wp-tests-config.php file.\n";
    42     exit( 1 );
    43 }
    4438
    4539tests_reset__SERVER();
Note: See TracChangeset for help on using the changeset viewer.