This repository has been archived by the owner on Jun 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
/
phpunit.xml.dist
55 lines (48 loc) · 1.94 KB
/
phpunit.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0"?>
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<!-- Plugin-specific tests. -->
<testsuite name="plugin">
<directory prefix="test-" suffix=".php">./tests/</directory>
<directory suffix="Test.php">./tests/</directory>
<exclude>tests/test-sample.php</exclude>
</testsuite>
<!--
WooCommerce core test suite.
Note that the tests/bootstrap.php file contains some logic that will attempt to update
the "core" test suite at runtime, based on the value of the WC_VERSION environment
variable. Instances of "%WC_VERSION%" will be replaced with the current version being
tested, or "master" if WC_VERSION=latest.
-->
<testsuite name="core">
<directory suffix=".php">./vendor/woocommerce/woocommerce-src-%WC_VERSION%/tests/unit-tests</directory>
<!--
Exclude tests from the core test suite that won't pass without major work-arounds.
If they only need to be skipped for certain versions, specify the version rather
than using the %WC_VERSION% placeholder.
-->
<!-- @link https://github.com/woocommerce/woocommerce/pull/25883 -->
<exclude>./vendor/woocommerce/woocommerce-src-4.0/tests/unit-tests/util/install.php</exclude>
<!-- @link https://github.com/woocommerce/woocommerce/pull/25403 -->
<exclude>./vendor/woocommerce/woocommerce-src-3.8/tests/unit-tests/util/api-functions.php</exclude>
<!-- @link https://github.com/woocommerce/woocommerce/pull/25378 -->
<exclude>./vendor/woocommerce/woocommerce-src-3.8/tests/unit-tests/geolocation/class-wc-tests-geolite-integration.php</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">includes</directory>
<file>woocommerce-custom-orders-table.php</file>
</whitelist>
</filter>
<php>
<env name="WC_VERSION" value="latest" />
</php>
</phpunit>