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"?>
<phpunit
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="tests/legacy/bootstrap.php"
backupGlobals="false"
colors="true"
@ -7,18 +7,19 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
verbose="true"
>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<testsuites>
<testsuite name="WooCommerce Test Suite">
<directory suffix=".php">./tests/legacy/unit-tests</directory>
<directory suffix=".php">./tests/php</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<coverage includeUncoveredFiles="true">
<include>
<directory suffix=".php">./includes</directory>
<file>woocommerce.php</file>
<file>uninstall.php</file>
</include>
<exclude>
<directory suffix=".php">./includes/admin/helper/views</directory>
<directory suffix=".php">./includes/admin/importers/views</directory>
@ -44,6 +45,5 @@
<file>./includes/wc-template-hooks.php</file>
<file>./includes/wc-widget-functions.php</file>
</exclude>
</whitelist>
</filter>
</coverage>
</phpunit>