-
Notifications
You must be signed in to change notification settings - Fork 383
/
phpunit.xml.dist
47 lines (47 loc) · 1.49 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
<phpunit
bootstrap="tests/php/bootstrap.php"
backupGlobals="false"
colors="true"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
defaultTestSuite="default"
>
<php>
<const name="WP_TEST_ACTIVATED_PLUGINS" value="gutenberg/gutenberg.php,pwa/pwa.php" />
</php>
<testsuites>
<!-- Default test suite to run all tests -->
<testsuite name="default">
<directory prefix="test-" suffix=".php">./tests/php/</directory>
<directory suffix="Test.php">./tests/php/src</directory>
</testsuite>
<testsuite name="external-http">
<directory prefix="test-" suffix="embed-handler.php">tests/</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>external-http</group>
</exclude>
</groups>
<filter>
<whitelist processUncoveredFilesFromWhitelist="false">
<directory suffix=".php">./</directory>
<exclude>
<directory suffix=".php">assets</directory>
<directory suffix=".php">back-compat</directory>
<directory suffix=".php">bin</directory>
<directory suffix=".php">build</directory>
<directory suffix=".php">docs</directory>
<directory suffix=".php">node_modules</directory>
<directory suffix=".php">svn</directory>
<directory suffix=".php">tests</directory>
<directory suffix=".php">vendor</directory>
<directory suffix=".php">includes/ecosystem-data</directory>
<file>.phpstorm.meta.php</file>
</exclude>
</whitelist>
</filter>
</phpunit>