-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathphpunit.xml
More file actions
33 lines (33 loc) · 1.12 KB
/
phpunit.xml
File metadata and controls
33 lines (33 loc) · 1.12 KB
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
<phpunit
bootstrap="tests/phpunit/includes/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
convertDeprecationsToExceptions="true"
>
<testsuites>
<testsuite name="install">
<!-- These tests must run before others due to constant manipulation -->
<file>./tests/phpunit/tests/test-install.php</file>
</testsuite>
<testsuite name="maybe-create-language-terms">
<!-- These tests must be isolated to be sure Polylang API isn't loaded by another test -->
<file>./tests/phpunit/tests/plugins/test-model-maybe-create-language-terms.php</file>
</testsuite>
<testsuite name="main">
<directory prefix="test-" suffix=".php">./tests/phpunit/tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
<file>polylang.php</file>
<file>uninstall.php</file>
<exclude>
<file>src/install/plugin-updater.php</file><!-- 3rd party code with no significant modification -->
</exclude>
</whitelist>
</filter>
</phpunit>