Make WordPress Core

Changeset 49797


Ignore:
Timestamp:
12/12/2020 08:07:55 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Allow code coverage reports to be generated when running tests as a multisite.

This adds the information needed to generate a code coverage report to the multisite ruleset.

Fixes #52034.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/multisite.xml

    r49796 r49797  
    4040        </listener>
    4141    </listeners>
     42    <filter>
     43        <whitelist addUncoveredFilesFromWhitelist="true">
     44            <directory suffix=".php">../../build</directory>
     45            <exclude>
     46                <!-- Third party library exclusions. -->
     47                <directory suffix=".php">../../build/wp-includes/ID3</directory>
     48                <directory suffix=".php">../../build/wp-includes/IXR</directory>
     49                <directory suffix=".php">../../build/wp-includes/random_compat</directory>
     50                <directory suffix=".php">../../build/wp-includes/PHPMailer</directory>
     51                <directory suffix=".php">../../build/wp-includes/Requests</directory>
     52                <directory suffix=".php">../../build/wp-includes/SimplePie</directory>
     53                <directory suffix=".php">../../build/wp-includes/sodium_compat</directory>
     54                <directory suffix=".php">../../build/wp-includes/Text</directory>
     55
     56                <!-- Plugins and themes. -->
     57                <directory suffix=".php">../../build/wp-content/</directory>
     58
     59                <file>../../build/wp-admin/includes/class-ftp*</file>
     60                <file>../../build/wp-admin/includes/class-pclzip.php</file>
     61                <file>../../build/wp-admin/includes/deprecated.php</file>
     62                <file>../../build/wp-admin/includes/ms-deprecated.php</file>
     63
     64                <file>../../build/wp-includes/atomlib.php</file>
     65                <file>../../build/wp-includes/class-IXR.php</file>
     66                <file>../../build/wp-includes/class-json.php</file>
     67                <file>../../build/wp-includes/class-phpass.php</file>
     68                <file>../../build/wp-includes/class-pop3.php</file>
     69                <file>../../build/wp-includes/class-requests.php</file>
     70                <file>../../build/wp-includes/class-simplepie.php</file>
     71                <file>../../build/wp-includes/class-snoopy.php</file>
     72                <file>../../build/wp-includes/deprecated.php</file>
     73                <file>../../build/wp-includes/ms-deprecated.php</file>
     74                <file>../../build/wp-includes/pluggable-deprecated.php</file>
     75                <file>../../build/wp-includes/rss.php</file>
     76            </exclude>
     77        </whitelist>
     78    </filter>
    4279</phpunit>
Note: See TracChangeset for help on using the changeset viewer.