phpunit.xml migrated to the new PHPUnit 9 schema

This commit is contained in:
Nestor Soriano 2023-03-22 16:15:36 +01:00
parent 15c7a18c98
commit b7cd5aa47d
No known key found for this signature in database
GPG Key ID: 08110F3518C12CAD
1 changed files with 33 additions and 33 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="tests/legacy/bootstrap.php" bootstrap="tests/legacy/bootstrap.php"
backupGlobals="false" backupGlobals="false"
colors="true" colors="true"
@ -7,43 +7,43 @@
convertNoticesToExceptions="true" convertNoticesToExceptions="true"
convertWarningsToExceptions="true" convertWarningsToExceptions="true"
verbose="true" verbose="true"
> xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<testsuites> <testsuites>
<testsuite name="WooCommerce Test Suite"> <testsuite name="WooCommerce Test Suite">
<directory suffix=".php">./tests/legacy/unit-tests</directory> <directory suffix=".php">./tests/legacy/unit-tests</directory>
<directory suffix=".php">./tests/php</directory> <directory suffix=".php">./tests/php</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter> <coverage includeUncoveredFiles="true">
<whitelist addUncoveredFilesFromWhitelist="true"> <include>
<directory suffix=".php">./includes</directory> <directory suffix=".php">./includes</directory>
<file>woocommerce.php</file> <file>woocommerce.php</file>
<file>uninstall.php</file> <file>uninstall.php</file>
<exclude> </include>
<directory suffix=".php">./includes/admin/helper/views</directory> <exclude>
<directory suffix=".php">./includes/admin/importers/views</directory> <directory suffix=".php">./includes/admin/helper/views</directory>
<directory suffix=".php">./includes/admin/meta-boxes/views</directory> <directory suffix=".php">./includes/admin/importers/views</directory>
<directory suffix=".php">./includes/admin/plugin-updates/views</directory> <directory suffix=".php">./includes/admin/meta-boxes/views</directory>
<directory suffix=".php">./includes/admin/views</directory> <directory suffix=".php">./includes/admin/plugin-updates/views</directory>
<directory suffix=".php">./includes/api/legacy</directory> <directory suffix=".php">./includes/admin/views</directory>
<directory suffix=".php">./includes/api/v1</directory> <directory suffix=".php">./includes/api/legacy</directory>
<directory suffix=".php">./includes/legacy</directory> <directory suffix=".php">./includes/api/v1</directory>
<directory suffix=".php">./includes/libraries</directory> <directory suffix=".php">./includes/legacy</directory>
<directory suffix=".php">./includes/shipping/legacy-flat-rate</directory> <directory suffix=".php">./includes/libraries</directory>
<directory suffix=".php">./includes/shipping/legacy-free-shipping</directory> <directory suffix=".php">./includes/shipping/legacy-flat-rate</directory>
<directory suffix=".php">./includes/shipping/legacy-international-delivery</directory> <directory suffix=".php">./includes/shipping/legacy-free-shipping</directory>
<directory suffix=".php">./includes/shipping/legacy-local-delivery</directory> <directory suffix=".php">./includes/shipping/legacy-international-delivery</directory>
<directory suffix=".php">./includes/shipping/legacy-local-pickup</directory> <directory suffix=".php">./includes/shipping/legacy-local-delivery</directory>
<directory suffix=".php">./includes/updates</directory> <directory suffix=".php">./includes/shipping/legacy-local-pickup</directory>
<directory suffix=".php">./includes/vendor</directory> <directory suffix=".php">./includes/updates</directory>
<directory suffix=".php">./includes/widgets</directory> <directory suffix=".php">./includes/vendor</directory>
<directory suffix=".php">./packages</directory> <directory suffix=".php">./includes/widgets</directory>
<directory suffix=".php">./src</directory> <directory suffix=".php">./packages</directory>
<directory suffix=".php">./vendor</directory> <directory suffix=".php">./src</directory>
<file>./includes/wc-deprecated-functions.php</file> <directory suffix=".php">./vendor</directory>
<file>./includes/wc-template-hooks.php</file> <file>./includes/wc-deprecated-functions.php</file>
<file>./includes/wc-widget-functions.php</file> <file>./includes/wc-template-hooks.php</file>
</exclude> <file>./includes/wc-widget-functions.php</file>
</whitelist> </exclude>
</filter> </coverage>
</phpunit> </phpunit>