WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/22/2017 06:58:46 PM (2 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/user/wpDeleteUser.php

    r38938 r40520  
    124124    }
    125125
     126    /**
     127     * @group ms-excluded
     128     */
    126129    public function test_numeric_string_user_id() {
    127130        if ( is_multisite() ) {
     
    145148    /**
    146149     * @ticket 33800
     150     * @group ms-excluded
    147151     */
    148152    public function test_should_return_false_for_object_user_id() {
Note: See TracChangeset for help on using the changeset viewer.