Make WordPress Core


Ignore:
Timestamp:
04/22/2017 06:58:46 PM (9 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Introduce ms-required and ms-excluded groups for tests.

Tests in the ms-excluded group are now excluded when running tests with multisite enabled, and tests in the ms-required group are excluded when running tests without multisite enabled. The end result is a significantly reduced number of skipped tests polluting PHPUnit's output, which means verbose mode can be used to more easily see which tests are skipped or incomplete, and why.

See #40531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rewrite.php

    r38654 r40520  
    120120         * @ticket 35531
    121121         * @group multisite
     122         * @group ms-required
    122123         */
    123124        function test_url_to_postid_of_http_site_when_current_site_uses_https() {
     
    316317        /**
    317318         * Reveals bug introduced in WP 3.0
    318          *
    319          * Run tests using multisite `phpunit -c multisite`
     319         * @group ms-required
    320320         */
    321321        function test_url_to_postid_ms_home_url_collision() {
     
    323323                if ( ! is_multisite() ) {
    324324                        $this->markTestSkipped( 'test_url_to_postid_ms_home_url_collision requires multisite' );
    325                         return false;
    326325                }
    327326
Note: See TracChangeset for help on using the changeset viewer.