Make WordPress Core

Changeset 42665


Ignore:
Timestamp:
02/07/2018 10:20:25 PM (7 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Allow code coverage reports to be generated.

This corrects the attribute needed to allow PHPUnit to generate coverage reports, and also adds a blacklist of files and directories that are excluded from coverage reports.

Props schlessera, jipmoors

Fixes #43067, #43240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpunit.xml.dist

    r41262 r42665  
    4747    </listeners>
    4848    <filter>
    49         <whitelist processUncoveredFilesFromWhitelist="true">
     49        <whitelist addUncoveredFilesFromWhitelist="true">
    5050            <directory suffix=".php">src</directory>
     51            <exclude>
     52                <!-- Third party library exclusions -->
     53                <file>src/wp-admin/includes/class-ftp*</file>
     54                <file>src/wp-admin/includes/class-pclzip.php</file>
     55                <file>src/wp-admin/includes/deprecated.php</file>
     56                <file>src/wp-admin/includes/ms-deprecated.php</file>
     57
     58                <file>src/wp-includes/atomlib.php</file>
     59                <file>src/wp-includes/class-IXR.php</file>
     60                <file>src/wp-includes/class-json.php</file>
     61                <file>src/wp-includes/class-phpass.php</file>
     62                <file>src/wp-includes/class-phpmailer.php</file>
     63                <file>src/wp-includes/class-pop3.php</file>
     64                <file>src/wp-includes/class-requests.php</file>
     65                <file>src/wp-includes/class-simplepie.php</file>
     66                <file>src/wp-includes/class-smtp.php</file>
     67                <file>src/wp-includes/class-snoopy.php</file>
     68                <file>src/wp-includes/deprecated.php</file>
     69                <file>src/wp-includes/ms-deprecated.php</file>
     70                <file>src/wp-includes/pluggable-deprecated.php</file>
     71                <file>src/wp-includes/rss.php</file>
     72
     73                <directory suffix=".php">src/wp-includes/ID3</directory>
     74                <directory suffix=".php">src/wp-includes/IXR</directory>
     75                <directory suffix=".php">src/wp-includes/random_compat</directory>
     76                <directory suffix=".php">src/wp-includes/Requests</directory>
     77                <directory suffix=".php">src/wp-includes/SimplePie</directory>
     78                <directory suffix=".php">src/wp-includes/Text</directory>
     79            </exclude>
    5180        </whitelist>
    5281    </filter>
Note: See TracChangeset for help on using the changeset viewer.