forked from polylang/polylang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml
34 lines (34 loc) · 1.14 KB
/
phpunit.xml
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
<phpunit
bootstrap="tests/phpunit/includes/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite name="install">
<!-- These tests must run before others due to contant manipulation -->
<file>./tests/phpunit/tests/test-install.php</file>
</testsuite>
<testsuite name="main">
<directory prefix="test-" suffix=".php">./tests/phpunit/tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./admin</directory>
<directory suffix=".php">./frontend</directory>
<directory suffix=".php">./include</directory>
<directory suffix=".php">./install</directory>
<directory suffix=".php">./integrations</directory>
<directory suffix=".php">./modules</directory>
<directory suffix=".php">./settings</directory>
<file>polylang.php</file>
<file>uninstall.php</file>
<exclude>
<file>install/plugin-updater.php</file><!-- 3rd party code with no significant modification -->
</exclude>
</whitelist>
</filter>
</phpunit>